home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / internet / other / news / nn13.lzh / USR / LIB / NN / HELP / MANUAL < prev   
Encoding:
Internet Message Format  |  1991-01-02  |  228.5 KB

  1. From: NN
  2. Subject: NAME
  3.  
  4. nn - efficient net news interface (No News is good news)
  5.  
  6. From: NN
  7. Subject: SYNOPSIS
  8.  
  9. nn [ options ] [ newsgroup | +folder | file ]...
  10. nn -g [ -r ]
  11. nn -a0 [ newsgroup ]...
  12.  
  13. From: NN
  14. Subject: DESCRIPTION
  15.  
  16. Net news is a world-wide information exchange service covering numerous topics
  17. in science and every day life. Topics are organized in news\ groups, and these
  18. groups are open for everybody to post articles on a subject related to the
  19. topic of the group.
  20.  
  21. Nn is a `point-and-shoot' net news interface program, or a news reader for
  22. short (not to be confused with the human news reader). When you use nn, you
  23. can decide which of the many news groups you are interested in, and you can
  24. unsubscribe to those which don't interest you. nn will let you read the new
  25. (and old) articles in each of the groups you subscribe to using a menu based
  26. article selection prior to reading the articles in the news group.
  27.  
  28.     When a news group is entered, nn will locate all the presently unread
  29. articles in the group, and extract their sender, subject, and other relevant
  30. information. This information is then rearranged, sorted, and marked in
  31. various ways to give it a pleasant format when it is presented on the screen.
  32.  
  33.     This will be done very quickly, because nn uses its own database to
  34. maintain all the necessary information on a directly accessible form (this
  35. database is built and maintained by the nnmaster(8) program).
  36.  
  37.     When the article menu appears on the screen, nn will be in a mode called
  38. selection mode. In this mode, the articles which seems to be interesting can
  39. be selected by single keystrokes (using the keys a-z and 0-9). When all the
  40. interesting articles among the ones presently displayed have been selected,
  41. the space bar is hit, which causes nn to enter reading mode.
  42.  
  43.     In reading mode, each of the selected articles will be presented. You use
  44. the space bar to go on to the next page of the current article, or to the next
  45. article. Of course, there are all sorts of commands to scroll text up and
  46. down, skip to the next article, responding to an article, decrypt an article,
  47. and so on.
  48.  
  49.     When all the selected articles in the current group have been read, the
  50. last hit on the space bar will cause nn will continue to the next group with
  51. unread articles, and enter selection mode on that group.
  52.  
  53. From: NN
  54. Subject: FREQUENTLY USED OPTIONS
  55.  
  56. nn accepts a lot of command line options, but here only the frequently used
  57. options are described. Options can also be set permanently by including
  58. appropriate variable settings in the init file described later. All options
  59. are described in the section on Command Line Options towards the end of this
  60. manual.
  61.  
  62. The frequently used command line options are:
  63.  
  64. -a0  Catch up on unread articles and groups. See the section "Catch up" below.
  65.  
  66. -g   Prompt for the name of a news group or folder to be entered (with
  67.      completion).
  68.  
  69. -r   Used with -g to repeatedly prompt for groups to enter.
  70.  
  71. -lN  Print only the first N lines of the first page of each article before
  72.      prompting to continue. This is useful on slow terminals and modem lines
  73.      to be able to see the first few lines of longer articles.
  74.  
  75. -sWORD
  76.      Collect only articles which contain the string WORD in their subject
  77.      (case is ignored). This is normally combined with the -x and -m options
  78.      to find all articles on a specific subject.
  79.  
  80. -s/regexp
  81.      Collect only articles whose subject matches the regular expression regexp
  82.      .This is normally combined with the -x and -m options to find all
  83.      articles on a specific subject.
  84.  
  85. -nWORD or -n/regexp
  86.      Same as -s except that it matches on the sender's name instead of the
  87.      article's subject. This is normally combined with the -x and -m options
  88.      to find all articles from a specific author. It cannot be mixed with the
  89.      -s option!
  90.  
  91. -i   Normally searches with -n and -s are case independent. Using this option,
  92.      the case becomes significant.
  93.  
  94. -m   Merge all articles into one `meta group' instead of showing them one
  95.      group at a time. This is normally used together with the -x and -s
  96.      options to get all the articles on a specific subject presented on a
  97.      single menu (when you don't care about which group they belong to). When
  98.      -m is used, no articles will be marked as read.
  99.  
  100. -x[N]
  101.      Present (or scan) all (or the last N) unread as well as read articles.
  102.      When this option is used, nn will never mark unread articles as read
  103.      (i.e. .newsrc is not updated).
  104.  
  105. -X   Read/scan unsubscribed groups also. Most useful when looking for a
  106.      specific subject in all groups, e.g.
  107.           nn -mxX -sSubject all
  108.  
  109. news.group  or  file  or  +folder
  110.      If none of these arguments are given, all subscribed news groups will be
  111.      used. Otherwise, only the specified news groups and/or files will be
  112.      collected and presented. In specifying a news groups, the following `meta
  113.      notation' can be used:
  114.      If the news group ends with a `.' (or `.all'), all subgroups of the news
  115.      group will be collected, e.g.
  116.           comp.sources.
  117.      If a news group starts with a `.' (or `all.'), all the matching subgroups
  118.      will be collected, e.g.
  119.           .sources.unix
  120.      The argument `all' identifies all (subscribed) news groups.
  121.  
  122. From: NN
  123. Subject: COMMAND INPUT
  124.  
  125. In general, nn commands consist of one or two key-strokes, and nn reacts
  126. instantly to the commands you give it; you don't have to enter return after
  127. each command (except where explicitly stated).
  128.  
  129. Some commands have more serious effects than others, and therefore nn requests
  130. you to confirm the command. You confirm by hitting the the y key, and reject
  131. by hitting the n key. Some `trivial' requests may also be confirmed simply by
  132. hitting space. For example, to confirm the creation of a save file, just hit
  133. space, but if one or more directories also have to be created, you must enter
  134. y.
  135.  
  136. Many commands will require that you enter a line of text, e.g. a file name or
  137. a shell command. If you enter space as the first character on a line, the line
  138. will be filled with a default value (if one is defined). For example, the
  139. default value for a file name is the last file name you have entered, and the
  140. default shell command is your previous shell command. You can edit this
  141. default value as well as a directly typed text, using the following editing
  142. commands. The erase, kill, and interrupt keys are the keys defined by the
  143. current tty settings. On systems without job control, the suspend key will be
  144. control-Z while it is the current suspend character on system with job
  145. control.
  146.  
  147. erase
  148.      Delete the last character on the line.
  149.  
  150. delete-word   (normally ^W)
  151.      Delete the last word or component of the input.
  152.  
  153. kill
  154.      Delete all characters on the line.
  155.  
  156. interrupt  and  control-G
  157.      Cancel the command which needs the input.
  158.  
  159. suspend
  160.      Suspend nn if supported by the system. Otherwise, spawn an interactive
  161.      shell.
  162.  
  163. return
  164.      Terminate the line, and continue with the command.
  165.  
  166. Related variables: erase-key, flow-control, flush-typeahead, help-key,
  167. kill-key, word-key.
  168.  
  169. From: NN
  170. Subject: BASIC COMMANDS
  171.  
  172. There are numerous commands in nn, and most of them can be invoked by a single
  173. keystroke. The descriptions in this manual are based on the standard bindings
  174. of the commands to the keys, but it is possible to customize these using the
  175. map command described later. For each of the keystroke commands described in
  176. this manual, the corresponding command name will also be shown in curly
  177. braces, e.g. {command}.
  178.  
  179. The following commands work in both selection mode and in reading mode. The
  180. notation ^X means `control X':
  181.  
  182. ?    {help}
  183.      Help. Gives a one page overview of the commands available in the current
  184.      mode.
  185.  
  186. ^L    {redraw}
  187.      Redraw screen.
  188.  
  189. ^R    {redraw}
  190.      Redraw screen (Same as ^L).
  191.  
  192. ^P    {message}
  193.      Repeat the last message shown on the message line. The command can be
  194.      repeated to successively show previous messages (the maximum number of
  195.      saved messages is controlled via the message-history variable.)
  196.  
  197. !    {shell}
  198.      Shell escape. The user is prompted for a command which is executed by
  199.      your favorite shell (see the shell variable). Shell escapes are described
  200.      in detail later on.
  201.  
  202. Q    {quit}
  203.      Quit nn. When you use this command, you neither lose unread articles in
  204.      the current group nor the selections you might have made (unless the
  205.      articles are expired in the meantime of course).
  206.  
  207. V    {version}
  208.      Print release and version information.
  209.  
  210. :command  {command}
  211.      Execute the command by name. This form can be used to invoke any of nn's
  212.      commands, also those which cannot be bound to a key (such as :coredump),
  213.      or those which are not bound to a key by default (such as post and
  214.      unshar).
  215.  
  216. Related and basic variables: backup, backup-suffix, confirm-auto-quit, expert,
  217. mail, message-history, new-group-action, newsrc, quick-count.
  218.  
  219. From: NN
  220. Subject: SELECTION MODE
  221.  
  222. In selection mode, the screen is divided into four parts: the header line
  223. showing the name of the news group and the number of articles, the menu lines
  224. which show the collected articles - one article per line, the prompt line
  225. where you enter commands, and the message line where nn prints various
  226. messages to you.
  227.  
  228. Each menu line begins with an article id which is a unique letter (or digit if
  229. your screen can show more than 26 menu lines). To select an articles for
  230. reading, you simply enter the corresponding id, and the menu line will be
  231. high-lighted to indicate that the article is selected. When you have selected
  232. all the interesting articles on the present menu, you simply hit space.
  233.  
  234. If there are more articles collected for the current group than could be
  235. presented on one screenful of text, you will be presented with the next
  236. portion of articles to select from. When you have had the opportunity to
  237. select among all the articles in the group, hitting space will enter reading
  238. mode.
  239.  
  240. If no articles have been selected in the current group, hitting space will
  241. enter selection mode on the next news group, or exit nn if the current group
  242. was the last news group with unread articles. It is thus possible to go
  243. through ALL unread articles (without reading any of them) just by hitting
  244. space a few times.
  245.  
  246. The articles will be presented on the menu using one of the following layouts:
  247.  
  248. 0:   x Name......... Subject.............. +123
  249.  
  250. 1:   x Name......... 123 Subject..............
  251.  
  252. 2:   x 123 Subject...................................
  253.  
  254. 3:   x Subject...........................................
  255.  
  256. 4:   x Subject........................................
  257.  
  258. Here x is the letter or digit that must be entered to select the article, Name
  259. is the real name of the sender (or the mail address if the real name cannot be
  260. found), Subject is the contents of the "Subject:" line in the article, and 123
  261. is the number of lines in the article.
  262.  
  263. Layout 0 and 1 are just two ways to present the same information, while layout
  264. 2 and 3 are intended for groups whose articles have very long subject lines,
  265. e.g. comp.sources.
  266.  
  267.     Layout 4 is a hybrid between layout 1 and 3. It will normally use layout 1,
  268. but it will use layout 3 (with a little indentation) for menu lines where the
  269. subject is longer than the space available with layout 1.
  270.  
  271. Layout 1 is the default layout, and an alternative menu line layout is
  272. selected using the -L option or by setting the layout variable. Once nn is
  273. started the layout can be changed at any time using the " key {layout}.
  274.  
  275. The Name is limited to 16 characters, and to make maximum use of this space,
  276. nn will perform a series of simplifications on the name, e.g. changing first
  277. names into initials, removing domain names from mail addresses (if the real
  278. name is not found) etc. It does a good job, but some people on the net put
  279. weird things into the From: field (or actually into their password file) which
  280. result in nn producing quite cryptic, and sometimes funny "names".
  281.  
  282. One a usual 80 column terminal, the Subject is limited to about 60 characters
  283. (75 in layout 3) and is thus only an approximation to the actual subject line
  284. which may be much longer. To get as much out of this space, Re: prefixes (in
  285. various forms) are recognized and replaced by a single `>' character (see the
  286. re-layout variable).
  287.  
  288.     Since articles are sorted according to the subject, two or more adjacent
  289. articles may share the same subject (ignoring any `>'s). In this case, only
  290. the first article will show the subject of the article; the rest will only
  291. show the `>' character in the subject field (or a `-' if there is no `>' at
  292. the beginning of the line). A typical menu will thus only show each subject
  293. once, saving a lot of time in scanning the news articles.
  294.  
  295. Related variables: collapse-subject, columns, confirm-entry,
  296. confirm-entry-limit, entry-report-limit, fsort, kill, layout, limit, lines,
  297. long-menu, re-layout, repeat, slow-mode, sort, sort-mode, split,
  298. subject-match-limit, subject-match-offset, subject-match-parts.
  299.  
  300. From: NN
  301. Subject: ARTICLE ATTRIBUTES
  302.  
  303. While nn is running and between invocations, nn associates an attribute with
  304. each article on your system. These attributes are used to differentiate
  305. between read and unread articles, selected articles, articles marked for later
  306. treatment, etc. Depending on how nn is configured, these attributes can be
  307. saved between invocations of nn, or some of them may only be used while nn is
  308. running.
  309.  
  310. The attribute is shown on the menu using either a single character following
  311. the article id or by high-lighting the menu line, depending on the attribute
  312. and the capabilities of the terminal. You can also change the attributes to
  313. your own taste (see the attributes variable).
  314.  
  315. The attribute of an article can be changed explicitly using the selection mode
  316. commands described below, or it will change automatically for example when you
  317. have read or saved a selected article. If a command may change any article
  318. attributes, it will be noted in the description of the command. The following
  319. descriptions of the attributes will only mention the most important commands
  320. that may set (or preserve) the attribute.
  321.  
  322. The following attributes may be associated with an article:
  323.  
  324. read Menu attribute "." - indicates that the article has been read or saved.
  325.      When you leave the group, these articles will be marked permanently read,
  326.      and are not presented the next time you enter the group.
  327.  
  328. seen Menu attribute "," - indicates that the article is unread, but that it
  329.      has been presented on a menu. Depending on how nn is configured, these
  330.      articles will automatically be marked read when you leave the group, they
  331.      may remain seen, or they may just be unread the next time you enter the
  332.      group (see the auto-junk-seen, confirm-junk-seen, and retain-seen-status
  333.      variables).
  334.      Only the commands continue (space) and read-skip (X) will mark unread
  335.      articles on the current (or all) menu pages as seen when they are used.
  336.      Other commands that scroll through the menu pages or enter reading mode
  337.      will let unread articles remain unread.
  338.  
  339. unread
  340.      Menu attribute " " - indicates an unread article. These articles were
  341.      unread when you entered the group, and they may remain unread when you
  342.      leave the group, unless they have been marked seen by the command that
  343.      you used to leave the group or enter reading mode.
  344.  
  345. selected
  346.      Menu line high-lighted (or menu attribute "*") - indicates that you have
  347.      selected the article. If you leave the group, the selected articles will
  348.      remain selected the next time you enter the group. When you have read a
  349.      selected article, the attribute will automatically change to read.
  350.  
  351. auto-selected
  352.      These articles have the same appearance as selected articles on the menu,
  353.      and the only difference is that these articles have been selected
  354.      automatically via the auto-selection facility rather than manually by
  355.      you. Very few commands differentiate between these attributes and if they
  356.      do, it is explicitly stated in this manual. The main difference is that
  357.      these articles are only marked as unread when you leave the group
  358.      (supposing they will also be auto-selected the next the group is
  359.      entered). This simplifies the house-keeping between invocations of nn.
  360.  
  361. leave
  362.      Menu attribute "+" - indicates that the article is marked for later
  363.      treatment by the leave-article (l) command. These articles may be
  364.      selected (on demand) when you have read all selected articles in a group.
  365.      However, if you do not select them then immediately, they are stored as
  366.      the leave-next attribute described below.
  367.  
  368. leave-next
  369.      Menu attribute "=" - indicates that the article is marked for later
  370.      treatment by the leave-next (L) command. This is a permanent attribute,
  371.      which will remain on the article until you either read the article,
  372.      change the attribute, or it is expired. So assinging this attribute to an
  373.      article will effectively keep it unread until you do something. If the
  374.      variable select-leave-next is set, nn will ask whether these articles
  375.      should be selected on entry to a group (but naturally, doing so will
  376.      change the leave-next attribute to select).
  377.  
  378. cancelled
  379.      Menu attribute "#" - indicates that the article has been cancelled. This
  380.      is mainly useful when tidying a folder; it is set by the cancel (C)
  381.      command, and can be cleared by any command that change attributes, e.g.
  382.      you can select and deselect the article.
  383.  
  384. killed
  385.      Menu attribute "!" - indicates that the article has been killed (e.g. by
  386.      the K {kill-select} command). Killed articles are immediately removed
  387.      from the menu, so you should not normally see articles with this
  388.      attribute. If you do, report it as a bug!
  389.  
  390. The attributes are saved in two files: .newsrc (read articles) and .nn/select
  391. (other attributes). Plain unread articles are saved by not occurring in either
  392. of these files. Both files are described in more detail later on.
  393.  
  394. Related variables: attributes, auto-junk-seen, confirm-junk-seen,
  395. retain-seen-status, select-leave-next.
  396.  
  397. From: NN
  398. Subject: SELECTION MODE COMMANDS
  399.  
  400. The primary purpose of the selection mode is of course to select the articles
  401. to be read, but numerous other commands may also be performed in this mode:
  402. saving of articles in files, replying and following up on articles,
  403. mailing/forwarding articles, shell escapes etc.
  404.  
  405.     As described above, the selected articles are marked either by showing the
  406. corresponding menu line in standout mode (reverse video), or if the terminal
  407. does not have this capability by placing an asterisk (*) after the selection
  408. letter or digit.
  409.  
  410. Most commands which are used to select articles will work as toggle commands.
  411. If the article is not already selected, the selectedattribute on the
  412. article(s), independent on the previous attribute. Otherwise, the article(s)
  413. will be deselected and marked unread. Consequently, any article can be marked
  414. unread simply be selecting and deselecting it.
  415.  
  416. During selection, the cursor will normally be placed on the article following
  417. the last article whose attribute was changed (initially the first article).
  418. The article pointed out by the cursor is called the current article, and the
  419. following commands work relative to the current article and cursor position.
  420.  
  421. abc...z 01..9  {article N}
  422.      The article with the given identification letter or digit is selected or
  423.      deselected. The following article becomes the current article. If the
  424.      variable auto-select-subject is set, all articles with the same subject
  425.      as the given article are selected.
  426.  
  427. .    {select}
  428.      Select or deselect the current article and move the cursor to the next
  429.      article.
  430.  
  431. ,    {line+1}
  432.      Move the cursor to the next article. You can use the down arrow as well.
  433.  
  434. /    {line-1}
  435.      Move cursor to previous article. You can use the up arrow as well.
  436.  
  437. *    {select-subject}
  438.      Select or deselect all articles with same subject as current article.
  439.      This will work across several menu pages if necessary.
  440.  
  441. -x    {select-range}
  442.      Select or deselect the range of articles between the current article and
  443.      the article specified by x. For example you can select all articles from
  444.      e to k by simply typing e-k.
  445.  
  446. The following commands may change the attributes on all articles on the
  447. current menu page, or on all articles on all menu pages.
  448.  
  449. @    {select-invert}
  450.      Reverse selections. All selected articles on the current page are
  451.      deselected, and vice-versa. (Use the find command to select all
  452.      articles.)
  453.  
  454. ~    {unselect-all}
  455.      Deselect all auto-selected articles in the group (this works across all
  456.      menu pages). If the command is executed twice, the selected articles will
  457.      also be deselected.
  458.  
  459. +    {select-auto}
  460.      Perform auto-selections in the group (see the section on "auto
  461.      kill/select" below).
  462.  
  463. =    {find}
  464.      Prompts for a regular expression, and selects all articles on the menu
  465.      (all pages) which matches the regular expression. Depending on the
  466.      variable select-on-sender matching is performed against the subject
  467.      (default) or the sender of the articles. An empty answer (= return) will
  468.      reuse the previous expression. Example: The command = . return will
  469.      select all articles in the group.
  470.  
  471. J    {junk-articles}
  472.      This is a very versatile command which can be used to perform all sorts
  473.      of attribute changes, either on individual articles, all articles on the
  474.      current menu page, all articles with a specific attribute, or all
  475.      available articles. To access all the functions of this command, the J
  476.      key may have to be hit up to four times, to loop through different
  477.      one-line menus. The full functionality of the junk-articles command is
  478.      described in a separate section below.
  479.  
  480. L    {leave-next}
  481.      This is a specialized version of the generic J {junk-articles} command to
  482.      set the leave-next attribute on a subset of the articles on the menu. It
  483.      is also described further below.
  484.  
  485. The following commands move between the pages belonging to the same news group
  486. when there are more articles than will fit on a single page. These commands
  487. will not change any article attributes.
  488.  
  489. >    {page+1}
  490.      Goto next menu page.
  491.  
  492. <    {page-1}
  493.      Goto previous menu page, or to last menu page if on first menu page.
  494.  
  495. $    {page=$}
  496.      Goto last menu page.
  497.  
  498. ^    {page=1}
  499.      Goto first menu page.
  500.  
  501. The following commands are used to enter reading mode for the selected
  502. articles, and to move between news groups (in selection mode). They may change
  503. article attributes if noted below.
  504.  
  505. space    {continue}
  506.      Continue to next menu page, or if on last menu page, read the selected
  507.      articles. If no articles have been selected, continue to the next news
  508.      group. The unread articles on the current menu page will automatically be
  509.      marked seen.
  510.  
  511. return    {continue-no-mark}
  512.      Identical to the continue command, except that the unread articles on the
  513.      current menu page will remain unread. (The newline key has the same
  514.      effect).
  515.  
  516. Z    {read-return}
  517.      Enter reading mode immediately with the currently selected articles. When
  518.      all articles have been read, return to selection mode in the current
  519.      group. It will mark selected articles read as they are read, but unread
  520.      articles are not normally changed (can be controlled with the variable
  521.      marked-by-read-return.)
  522.  
  523. X    {read-skip}
  524.      Mark all unmarked articles seen on all menu pages (or the pages defined
  525.      by the marked-by-read-skip variable), and enter reading mode immediately
  526.      with the currently selected articles. As the selected articles are read,
  527.      they are marked read. When all selected articles have been read, nn will
  528.      enter selection mode in the next news group. When no articles are
  529.      selected, it goes directly to the next group. This can be used to skip
  530.      all the articles in a large news group without having to go through all
  531.      the menu pages.
  532.  
  533. If you don't want to read the current group now, but want to keep it for
  534. later, you can use the following commands which will only mark seen and read
  535. articles as read. Currently selected articles will still be selected the next
  536. time you enter the group. None of these commands will change any attributes
  537. themselves (by default).
  538.  
  539. N    {next-group}
  540.      Go forward to the next group in the presentation sequence. If the
  541.      variable marked-by-next-group is set articles on the menu can optionally
  542.      be marked seen
  543.  
  544. P    {previous}
  545.      Go back to the previous group. This command will enter selection mode on
  546.      the last active group (two P commands in sequence will bring you to the
  547.      current group). If there are still some unread articles in the group,
  548.      only those articles will be shown. Otherwise, all the articles which were
  549.      unread when nn was invoked will be shown marked with the read attribute
  550.      (which can be changed as usual).
  551.  
  552. As described in the "Article Attributes" section, the read and seen articles
  553. will normally be marked read when you leave the group, and these articles are
  554. not shown the next time you enter the group.
  555.  
  556. In all releases prior to release 6.4, it was impossible to have individual
  557. articles in a group marked unread when you left a group, and the default
  558. behaviour of release 6.4 will closely match the traditional behaviour. This
  559. means that the seen and read articles are treated alike for most practical
  560. purposes with the default variable settings.
  561.  
  562. If you don't like nn to silently mark the seen articles read, you can set the
  563. variable confirm-junk-seen to get nn to prompt you for confirmation before
  564. doing this, or you can unset the variable auto-junk-seen to simply keep the
  565. seen articles for the next time you enter the group. You then have to use the
  566. J {junk-articles} to mark articles read.
  567.  
  568. Using return {continue-no-mark} will also allow you to keep articles unread
  569. rather than marking them seen when scrolling through the menu pages and
  570. entering reading mode. If this is your preferred reading style, you can remap
  571. space to this command.
  572.  
  573. Related variables: auto-junk-seen, auto-preview-mode, auto-select-subject,
  574. case-fold-search, confirm-auto-quit, confirm-entry, confirm-junk-seen,
  575. marked-by-next-group, marked-by-read-return, marked-by-read-skip,
  576. retain-seen-status, select-on-sender.
  577.  
  578. From: NN
  579. Subject: THE JUNK-ARTICLES AND LEAVE-NEXT COMMANDS
  580.  
  581. The J {junk-articles} command is a very flexible command which can perform all
  582. sorts of attribute changes, either on individual articles, all articles on the
  583. current menu page, all articles with a specific attribute, or all available
  584. articles.
  585.  
  586. To access all the functions of this command, the J key may have to be hit up
  587. to four times, to loop through different one-line menus:
  588.  
  589. Mark Read
  590.      This submenu allows you to mark articles read.
  591.  
  592. Unmark
  593.      This submenu allows you to mark articles unread.
  594.  
  595. Select
  596.      This submenu allows you to select articles based on their attribute.
  597.  
  598. Kill This submenu allows you to mark articles read and remove them from the
  599.      menu based on their attribute.
  600.  
  601. The L {leave-next} command is an extension of the J command with a fifth menu:
  602.  
  603. Leave
  604.      This menu allows you to mark articles for later handling with the
  605.      leave-next attribute which will keep the article unread until you
  606.      explicitly change the attribute (e.g. by reading it) or it is expired.
  607.  
  608. For each of these submenus, nn will list the most plausible choices you may
  609. use, but all of the following answers can be used at all submenus. When you
  610. have entered a choice, nn will afterward ask whether the change should be made
  611. to all menu pages or only the current page.
  612.  
  613. J    Show next submenu.
  614.  
  615. L    Change attribute on all leave articles.
  616.  
  617. N    Change attribute on all leave-next articles.
  618.  
  619. R    Change attribute on all read articles.
  620.  
  621. S    Change attribute on all seen articles.
  622.  
  623. U    Change attribute on all unmarked (i.e. unread) articles.
  624.  
  625. A    Change attribute on all articles no matter their current attribute.
  626.  
  627. *    Change attribute on all selected articles on the current page.
  628.  
  629. +    Change attribute on all selected articles on all pages.
  630.  
  631. a-z0-9
  632.      Change attribute on one or more specific articles on the current page.
  633.      You end the list of articles by a space or by using one of the other
  634.      choices described above.
  635.  
  636. .    Change attribute on current article.
  637.  
  638. , /  Move the current article down or up the menu without changing any
  639.      attributes.
  640.  
  641. From: NN
  642. Subject: READING MODE COMMANDS
  643.  
  644. In reading mode, the selected articles are presented one page at a time. To
  645. get the next page of an article, simply hit space, and when you are on the
  646. last page of an article, hit space to get to the next selected article.
  647. Articles are normally marked read when you go to the next article, while going
  648. back to the menu, quitting nn, etc. will retain the attribute on the current
  649. article.
  650.  
  651. When you are on the last page of the last article, hit space to enter
  652. selection mode on the next group (or the current group if reading mode was
  653. entered using the Z command).
  654.  
  655. To read an article, the following text scrolling commands are available:
  656.  
  657. space    {continue}
  658.      Scroll one page forward or continue with the next article or group as
  659.      described above.
  660.  
  661. backspace / delete  {page-1}
  662.      Go one page backwards in article.
  663.  
  664. d    {page+1/2}
  665.      Scroll one half page forward.
  666.  
  667. u    {page-1/2}
  668.      Go one half page backwards.
  669.  
  670. return    {line+1}
  671.      Scroll one line forward in the article.
  672.  
  673. tab    {skip-lines}
  674.      Skip over lines starting with the same character as the last line on the
  675.      current page. This is useful to skip over included text or to the next
  676.      file in a shell archive.
  677.  
  678. ^    {page=1}
  679.      Move to the first page (excluding the header) of the article.
  680.  
  681. $    {page=$}
  682.      Move to the last page of the article.
  683.  
  684. gN    {line=@}
  685.      Move to line N in the article.
  686.  
  687. /regexp    {find}
  688.      Search forward for text matching the regular expression regexp in the
  689.      article. If a matching text is found, it will be high-lighted.
  690.  
  691. .    {find-next}
  692.      Repeat search for last regular expression.
  693.  
  694. h    {page=0}
  695.      Show the header of the article, and continue from the top of the article.
  696.  
  697. H    {full-digest}
  698.      If the current article is extracted from a digest, show the entire digest
  699.      article including its header. Another H command will return to the
  700.      current subarticle.
  701.  
  702. D    {rot13}
  703.      Turn rot13 (caesar) decryption on and off for the current article, and
  704.      redraw current page. If the article is saved while it is decrypted on the
  705.      screen, it will be saved in decrypted form as well!
  706.  
  707. c    {compress}
  708.      Turn compression on and off for the current article and redraw current
  709.      page. With compression turned on, multiple spaces and tabs are shown as a
  710.      single space. This makes it much easier to read right justified text
  711.      which separate words with several spaces. (See also the compress
  712.      variable)
  713.  
  714. The following commands are used to move among the selected articles.
  715.  
  716. n    {next-article}
  717.      Move to next selected article. This command skips the rest of the current
  718.      article, marks it read, and jumps directly to the first page of the next
  719.      selected article (or to the next group if it was the last selected
  720.      article).
  721.  
  722. l    {leave-article}
  723.      Mark the current article with the leave attribute and continue with the
  724.      next selected article. When all the selected articles in the current
  725.      group have been read, these left over articles can be automatically
  726.      selected and shown once more, or the treatment can be postponed to the
  727.      next time you enter the group.
  728.           This is particularly useful if you see an article which you may want
  729.      to respond to unless one the following articles is already saying what
  730.      you intended to say.
  731.  
  732. L    {leave-next}
  733.      Mark the current article with the leave-next attribute and continue with
  734.      the next selected article.
  735.  
  736. p    {previous}
  737.      Goto previous article.
  738.  
  739. k    {next-subject}
  740.      Kill subject. Skips rest of current article, and all following articles
  741.      with the same subject. The skipped articles are marked read. To kill a
  742.      subject permanently use the K command.
  743.  
  744. *    {select-subject}
  745.      Show next article with same subject (even if it is not selected). This
  746.      command will select all following articles with the same subject as the
  747.      current article (similar to the `*' command in selection mode). This can
  748.      be used to select only the first article on a subject in selection mode,
  749.      and then select all follow-ups in reading mode if you find the article
  750.      interesting.
  751.  
  752. a    {advance-article}
  753.      Goto the following article on the menu even if it is not selected. This
  754.      command skips the rest of the current article and jumps directly to the
  755.      first page of the next article (it will not skip to the next group if it
  756.      is the last article). The attribute on the current article will be
  757.      restored, except for the unread attribute which will be changed to seen.
  758.  
  759. b    {back-article}
  760.      Goto the article before current article on the menu even if it is not
  761.      selected. This is similar to the a command, except for the direction.
  762.  
  763. The following commands perform an immediate return from reading mode to
  764. selection mode in the current group or skip to the next group.
  765.  
  766. =    {goto-menu}
  767.      Return to selection mode in the current group (think of = as the "icon"
  768.      of the selection menu). The articles read so far will be marked read.
  769.  
  770. N    {next-group}
  771.      Skip the rest of the selected and unread articles in the current group
  772.      and go directly to the next group. Only the read (and seen) articles in
  773.      the current group are marked as read.
  774.  
  775. X    {read-skip}
  776.      Mark all articles in the current group as read and go directly to the
  777.      next group. (You will be asked to confirm this command.)
  778.  
  779. Related variables: case-fold-search, compress, data-bits, date, header-lines,
  780. mark-overlap, monitor, overlap, scroll-clear-page, stop, trusted-escape-codes,
  781. wrap-header-margin.
  782.  
  783. From: NN
  784. Subject: PREVIEWING ARTICLES IN SELECTION MODE
  785.  
  786. In selection mode, it is possible to read a specific article on the menu
  787. without entering reading mode for all the selected articles on the menu. Using
  788. the commands described below will enter reading mode for one article only, and
  789. then return to the menu mode immediately after (depending on the setting of
  790. the preview-continuation variable).
  791.  
  792.     If there are more than 5 free lines at the bottom of the menu screen, nn
  793. will use that space to show the article (a minimal preview window can be
  794. permanently allocated with the window variable). Otherwise, the screen will be
  795. cleared to show the article.
  796.  
  797.     After previewing an article, it will be marked read (if the
  798. preview-mark-read variable is set), and the following article will become the
  799. current article.
  800.  
  801. %x    {preview}
  802.      Preview article x.
  803.  
  804. %%    {preview}
  805.      Preview the current article.
  806.  
  807. When the article is being shown, the following reading mode commands are very
  808. useful:
  809.  
  810. =    {goto-menu}
  811.      Skip the rest of the current article, and return to menu mode.
  812.  
  813. n    {next-article}
  814.      Skip the rest of the current article, and preview the next article.
  815.  
  816. l    {leave-article}
  817.      Mark the article as selected (!) on the menu for handling later on. Then
  818.      skip the rest of the current article, and preview the next article.
  819.  
  820. %y    {preview}
  821.      Preview article y .
  822.  
  823. If the variable auto-preview-mode is set, just hitting the article id in menu
  824. mode will enter preview mode on the specified article.
  825.  
  826. Related variables: auto-preview-mode, min-window, preview-continuation,
  827. preview-mark-read, window.
  828.  
  829. From: NN
  830. Subject: SAVING ARTICLES
  831.  
  832. The following commands are used to save articles in files, unpack archives,
  833. decode binaries, etc. It is possible to use the commands in both reading mode
  834. to save the current article and in selection mode to save one or more articles
  835. on the menu.
  836.  
  837. The saved articles will be appended to the specified file(s) followed by an
  838. empty line each. Both files and directories will be created as needed. When an
  839. article has been saved in a file, a message reporting the number of lines
  840. saved will be shown if the save-report variable is set (default on).
  841.  
  842. S    {save-full}
  843.      Save articles including the full article header.
  844.  
  845. O    {save-short}
  846.      Save articles with a short header containing only the name of the sender,
  847.      the subject, and the posting date of the article.
  848.  
  849. W    {save-body}
  850.      Write article without a header.
  851.  
  852. :print    {print}
  853.      Print article. Instead of a file name, this command will prompt for the
  854.      print command to which the current article will be piped. The default
  855.      print command is specified at compile time, but it can be changed by
  856.      setting the printer variable. The output will be identical to that of the
  857.      O command.
  858.  
  859. :patch    {patch}
  860.      Send articles through patch(1) (or the program defined in the
  861.      patch-command variable). Instead of a file name, you will be prompted for
  862.      the name of a directory in which you want the patch command to be
  863.      executed. nn will then pipe the body of the article through the patch
  864.      command.
  865.           The output from the patch process will be shown on the screen and
  866.      also appended to a file named Patch.Result in the patch directory.
  867.  
  868. :unshar    {unshar}
  869.      Unshar articles. You will be prompted for the name of a directory in
  870.      which you want nn to unshar the articles. nn will then pipe the proper
  871.      parts of the article body into a Bourne Shell whose working directory
  872.      will be set to the specified directory.
  873.           During the unpacking, the normal output from the unshar process will
  874.      appear on the screen, and the menu or article text will be redrawn when
  875.      the process is finished.
  876.           The output is also appended to a file named Unshar.Result in the
  877.      unshar directory.
  878.           The file specified in unshar-header-file (default "Unshar.Headers")
  879.      in the unshar directory will contain the header and initial text (before
  880.      the shar data) from the article. You can use the `G' {goto-group} command
  881.      to look at the Unshar.Headers file.
  882.  
  883. :decode    {decode}
  884.      Decode uuencoded articles into binary files. You will be prompted for the
  885.      name of a directory in which you want nn to place the decoded binary
  886.      files (the file names are taken from the uuencoded data).
  887.           nn will combine several articles into single files as needed, and
  888.      you can even decode unrelated packages (into the same directory) with one
  889.      decode command.
  890.           To be able to decode a binary file which spans several articles, nn
  891.      may have to ignore lines which fail the normal sanity checks on uuencoded
  892.      data instead of treating them as transmission errors. Consequently, it is
  893.      strongly recommended to check the resulting decoded file using the
  894.      checksum which is normally contained in the original article. (Actually,
  895.      you are also supposed to do this after decoding with a stand-alone
  896.      uudecode program).
  897.           The header and initial information in the decoded articles are saved
  898.      in the file specified in decode-header-file (default "Decode.Headers") in
  899.      the same directory as the decoded files.
  900.           If decode-skip-prefix is non-null, :decode will attempt to ignore up
  901.      to that many characters on each line to find the encoded data. This is
  902.      particularly useful in some binaries groups where files are both
  903.      uuencoded and packed with shar; nn will ignore the prefix added to each
  904.      line by shar, and thus be able to unshar, concatenate, and decode
  905.      multi-part postings automatically.
  906.  
  907. In reading mode, the following keys can also be used to invoke the save
  908. commands:
  909.  
  910. s    Same as S.
  911.  
  912. o    Same as O.
  913.  
  914. w    Same as W.
  915.  
  916. P    Same as :print.
  917.  
  918. The save commands will prompt for a file name which is expanded according to
  919. the rules described in the section on file name expansion below. For each
  920. group, it is possible to specify a default save file in the init file, either
  921. in connection with the group presentation sequence or in a separate save-files
  922. section (see below). If a default save file is specified for the group, nn
  923. will show this on the prompt line when it prompts for the file name. You can
  924. edit this name as usual, but if you kill the entire name immediately, nn will
  925. replace the default name with the last file name you entered. If you kill this
  926. as well, nn will leave you with a blank line.
  927.  
  928. If the quick-save variable is set, nn will only prompt for a save file name
  929. when the current article is inside a folder; otherwise, the default save file
  930. defined in the init file will be used unconditionally.
  931.  
  932. If the file (and directories in the path) does not exist, nn will ask whether
  933. the file (and the directories) should be created.
  934.  
  935. If the file name contains an asterisk, e.g.
  936.       part*.shar
  937. nn will save each of the articles in uniquely named files constructed by
  938. replacing the asterisk by numbers from the sequence 1, 2, 3, etc. The format
  939. of the string that replaces the * can be changed with the save-counter
  940. variable, and the first number to use can be changed via save-counter-offset.
  941.  
  942.     In selection mode, nn will prompt you for the identifier of one or more
  943. articles you want to save. When you don't want to save more articles, just hit
  944. space. The saved articles will be marked read.
  945.  
  946. If you enter an asterisk `*' when you are prompted for an article to save, nn
  947. will automatically save all the selected articles on the current menu page and
  948. mark them read.
  949.  
  950. Likewise, if you enter a plus `+', nn will save all the selected articles on
  951. all menu pages and mark them read.
  952.  
  953. This is very useful to unpack an entire package using the :unshar and :decode
  954. commands. It can also be used in combination with the save selected articles
  955. feature to save a selection of articles in separate, successively numbered
  956. files. But do not confuse these two concepts! The S* and S+ commands can be
  957. used to save the selected articles in a single file as well as in separate
  958. files, and the save in separate files feature can be used also when saving
  959. individual articles, either in the selection mode, or in the article reading
  960. mode.
  961.  
  962. When articles are saved in a file with a full or partial header, any header
  963. lines in the body of the article will be escaped by a tilde (e.g. ~From: ...)
  964. to enable nn to split the folder into separate articles. The escape string can
  965. be redefined via the embedded-header-escape variable.
  966.  
  967. Articles can optionally be saved in MAIL or MMDF compatible format by setting
  968. the mail-format and mmdf-format variables.
  969.  
  970. Related variables: confirm-append, confirm-create, decode-header-file,
  971. decode-skip-prefix, default-save-file, folder-save-file, edit-patch-command,
  972. edit-print-command, edit-unshar-command, folder, mail-format, mmdf-format,
  973. patch-command, printer, quick-save, save-counter, save-counter-offset,
  974. save-report, suggest-default-save, unshar-command, unshar-header-file.
  975.  
  976. From: NN
  977. Subject: FILE NAME EXPANSION
  978.  
  979. When the save commands prompts for a file name, the following file name
  980. expansions are performed on the file name you enter:
  981.  
  982. +folder
  983.      The + is replaced by the contents of the folder variable (default value
  984.      "~/News/") resulting in the name of a file in the folder directory.
  985.      Examples:
  986.           +emacs, +nn, +sources/shar/nn
  987.  
  988. +    A single plus is replaced by the expansion of the file name contained in
  989.      the default-save-file variable (or by folder-save-file when saving from a
  990.      folder).
  991.  
  992. ~/file
  993.      The ~ is replaced by the contents of the environment variable HOME, i.e.
  994.      the path name of your home directory. Examples:
  995.           ~/News/emacs, ~/News/nn, ~/src/shar/nn
  996.  
  997. |command-line
  998.      Instead of writing to a file, the articles are piped to the given shell
  999.      (/bin/sh) command-line. Each save or write command will create a separate
  1000.      pipe, but all articles saved or written in one command (in selection
  1001.      mode) are given as input to the same shell command. Example:
  1002.           | pr | lp
  1003.      This will print the articles on the printer after they have been piped
  1004.      through pr.
  1005.           It is possible to create separate pipes for each saved article by
  1006.      using a double pipe symbol in the beginning of the command, e.g.
  1007.           || cd ~/src/nn ; patch
  1008.  
  1009. The following symbols are expanded in a file name or command:
  1010.  
  1011. $F   will be expanded to the name of the current group with the periods
  1012.      replaced by slashes, e.g. rec/music/synth.
  1013.  
  1014. $G   will be expanded to the name of the current group.
  1015.  
  1016. $L   will be expanded to the last component of the name of the current group.
  1017.      You may use this to create default save file names like +src/$L in the
  1018.      comp.sources groups.
  1019.  
  1020. $N   will be expanded to the (local) article number, e.g. 1099. In selection
  1021.      mode it is only allowed at the end of the file name!
  1022.  
  1023. $(VAR)
  1024.      is replaced by the string value of the environment variable VAR.
  1025.  
  1026. Using these symbols, a simple naming scheme for `default folder name' is +$G
  1027. which will use the group name as folder name. Another possibility is +$F/$N.
  1028.  
  1029. As mentioned above, you can also instruct nn to save a series of files in
  1030. separate, unique files. All that is required is that the file name contains an
  1031. asterisk, e.g.
  1032.       +src/hype/part*.shar
  1033. This will cause each of the articles to be saved in separate, unique files
  1034. named part1.shar, part2.shar, and so on, always choosing a part number that
  1035. results in a unique file name (i.e. if part1.shar did already exist, the first
  1036. article would be saved in part2.shar, the next in part3.shar, and so on).
  1037.  
  1038. Related variables: default-save-file, folder, folder-save-file, save-counter,
  1039. save-counter-offset.
  1040.  
  1041. From: NN
  1042. Subject: FILE AND GROUP NAME COMPLETION
  1043.  
  1044. When entering a file name or a news group name, a simple completion feature is
  1045. available using the space, tab, and ? keys.
  1046.  
  1047. Hitting space anywhere during input will complete the current component of the
  1048. file name or group name with the first available possibility.
  1049.  
  1050. If this possibility is not the one you want, keep on hitting space until it
  1051. appears.
  1052.  
  1053. When the right completion has appeared, you can just continue typing the file
  1054. or group name, or you can hit tab to fix the current component, and get the
  1055. first possibility for the next component, and then use space to go through the
  1056. other possible completions.
  1057.  
  1058. The ? key will produce a list of the possible completions of the current
  1059. component. If the list is too long for the available space on screen, the key
  1060. can be repeated to get the next part of the list.
  1061.  
  1062. The current completion can be deleted with the erase key.
  1063.  
  1064. The default value for a file name is the last file name you have entered, so
  1065. if you enter a space as the first character after the prompt, the last file
  1066. name will be repeated (and you can edit it if you like). In some cases, a
  1067. string will already be written for you in the prompt line, and to get the
  1068. default value in these cases, use the kill key. This also means that if you
  1069. neither want the initial value, nor the default value, you will have to hit
  1070. the kill twice to get a clean prompt line.
  1071.  
  1072. Related variables: comp1-key, comp2-key, help-key, suggest-default-save.
  1073.  
  1074. From: NN
  1075. Subject: POSTING AND RESPONDING TO ARTICLES
  1076.  
  1077. In both selection mode and reading mode you can post new articles, post
  1078. follow-ups to articles, send replies to the author of an article, and you can
  1079. send mail to another user with the option of including an article in the
  1080. letter. In reading mode, a response is made to the current article, while in
  1081. selection mode you will be prompted for an article to respond to.
  1082.  
  1083. The following commands are available (the lower-case equivalents are also
  1084. available in reading mode):
  1085.  
  1086. R    {reply}
  1087.      Reply through mail to the author of the article. This is the preferred
  1088.      way to respond to an article unless you think your reply is of general
  1089.      interest.
  1090.  
  1091. F    {follow}
  1092.      Follow-up with an article in the same newsgroup (unless an alternative
  1093.      group is specified in the article header).
  1094.  
  1095. M    {mail}
  1096.      Mail a letter or forward an article to a single recipient. In selection
  1097.      mode, you will be prompted for an article to include in your letter, and
  1098.      in reading mode you will be asked if the current article should be
  1099.      included in the letter. You will then be prompted for the recipient of
  1100.      the letter (default recipient is yourself) and the subject of the letter
  1101.      (if an article is included, you may hit space to get the default subject
  1102.      which is the subject of the included article).
  1103.           The header of the article is only included in the posted letter if
  1104.      it is forwarded (i.e. not edited), or if the variable include-full-header
  1105.      is set.
  1106.  
  1107. :post    {post}
  1108.      Post a new article to any newsgroup. This command will prompt you for a
  1109.      comma-separated list of newsgroups to post to (you cannot enter a space
  1110.      because space is used for group name completion as described below).
  1111.           If you enter ? {help-key} as the first key, nn will show you a list
  1112.      of all available news groups and their purpose. While paging through this
  1113.      list, you can enter q to quit looking at the list. You can also enter /
  1114.      followed by a regular expression (typically a single word) which will
  1115.      cause nn to show a (much shorter) list containing only the lines matching
  1116.      the regular expression.
  1117.  
  1118. Generally, nn will construct a file with a suitable header, optionally include
  1119. a copy of the article in the file with each non-empty line prefixed by a `>'
  1120. character (except in mail mode), and invoke an editor of your choice (using
  1121. the EDITOR environment variable) on this file, positioning you on the first
  1122. line of the body of the article (if it knows the editor).
  1123.  
  1124.     When you have completed editing the message, it will compare it to the
  1125. unedited file, and if they are identical (i.e. you did not make any changes to
  1126. the file), or it is empty, the operation is cancelled. Otherwise you will be
  1127. prompted for an action to take on the constructed article (enter first letter
  1128. followed by return, or just return to take the default action):
  1129.       a)bort c)c e)dit i)spell m)ail r)eedit s)end v)iew w)rite
  1130.       Action: (post article)
  1131. You now have the opportunity to perform one of the following actions:
  1132.  
  1133.     a    throw the response away (will ask for confirmation),
  1134.     c    mail a copy of a follow-up to the poster of the article,
  1135.     e    edit the file again,
  1136.     i    run an (interactive) spell-checker on the text,
  1137.     m    mail a (blind) copy to a specified recipient,
  1138.     n    same as abort (no don't post)
  1139.     p    post article (same as send)
  1140.     r    throw away the edited text and edit the original text,
  1141.     s    send the article or letter,
  1142.     v    view the article (through the pager), or
  1143.     w    append it to a file (before you send it).
  1144.     y    confirm default answer (e.g. yes post it)
  1145.  
  1146. Related variables: append-signature-mail, append-signature-post,
  1147. default-distribution, edit-response-check, editor, include-art-id,
  1148. include-full-header, included-mark, mail-header, mail-record, mail-script,
  1149. mailer, mailer-pipe-input, news-header, news-record, news-script,
  1150. orig-to-include-mask, pager, query-signature, record, response-check-pause,
  1151. response-default-answer, save-counter, save-counter-offset, save-report,
  1152. spell-checker.
  1153.  
  1154. From: NN
  1155. Subject: JUMPING TO OTHER GROUPS
  1156.  
  1157. By default nn will present the news groups in a predefined sequence (see the
  1158. section on Presentation Sequence later on). To override this sequence and have
  1159. a look at any other group the G {goto-group} command available in both
  1160. selection and reading mode enables you to move freely between all the
  1161. newsgroups.
  1162.  
  1163. Furthermore, the G command enables you to open folders and other files, to
  1164. read old articles you have read before, and to grep for a specific subject in
  1165. a group.
  1166.  
  1167.     It is important to notice that normally the goto command is recursive, i.e.
  1168. a new menu level is created when the specified group or folder is presented,
  1169. and when it has been read, nn will continue the activity in the group that was
  1170. presented before the goto command was executed. However, if there are unread
  1171. articles in the target group you can avoid entering a new menu level by using
  1172. the j reply described below. The current menu level (i.e. number of nested
  1173. goto commands) will be shown in the prompt line as "<N>" (in reverse video).
  1174.  
  1175.     The goto command is very powerful, but unfortunately also a little bit
  1176. tricky at first sight, because the facilities it provides depend on the
  1177. context in which the command is used.
  1178.  
  1179.     When executed, the goto command will prompt you for the name of the
  1180. newsgroup, folder, or file to open. It will use the first letter you enter to
  1181. distinguish these three possibilities:
  1182.  
  1183. return
  1184.      An empty answer is equivalent to the current newsgroup.
  1185.  
  1186. letter
  1187.      The answer is taken to be the name of a newsgroup. If a news group with
  1188.      the given name does not exist, nn will treat the answer as a regular
  1189.      expression and locate the first group in the presentation sequence (or
  1190.      among all groups) whose name matches the expression.
  1191.  
  1192. +   
  1193.      The answer is taken to be the name of a folder. If only `+' is entered,
  1194.      it is equivalent to the default save file for the current group.
  1195.  
  1196. / or ./ or ~/
  1197.      The answer is taken to be the name of a file, either relative to the
  1198.      current directory, relative to your home directory, or an absolute path
  1199.      name for the file.
  1200.  
  1201. %    In reading mode, this reply corresponds to reading the current article
  1202.      (and splitting it as a digest). In selection mode, it will prompt for an
  1203.      article on the menu to read.
  1204.  
  1205. @    This choice is equivalent to the archive file for the current group.
  1206.      nnmaster maintains archive files with all old and current articles for
  1207.      the groups which have the auto-archive option set in the GROUPS file (see
  1208.      nnmaster(8)).
  1209.  
  1210. = and number
  1211.      These answers are equivalent to the same answers described below applied
  1212.      to the current group (e.g. G return = and G = are equivalent).
  1213.  
  1214. Specifying a folder, a file, or an article (with %) will cause nn to treat the
  1215. file like a digest and split it into separate articles (not physically!) which
  1216. are then presented on a menu in the usual way, allowing you to read or save
  1217. individual subarticles from the folder.
  1218.  
  1219. When you enter a group name, nn will ask you how many articles in the group
  1220. you want to see on the menu. You can give the following answers:
  1221.  
  1222. a number N
  1223.      In this case you will get the newest N articles in the group, or if you
  1224.      specified the current group (by hitting return to the group name prompt
  1225.      or entering the number directly), you will get that many extra articles
  1226.      included on the same menu (without creating a new menu level).
  1227.  
  1228. j    This answer can only be given if there are unread articles in the group.
  1229.      It will instruct nn to jump directly to the specified group in the
  1230.      presentation sequence without creating a new menu level.
  1231.  
  1232. u    This instructs nn to present the unread articles in the group (if there
  1233.      are any). If you have already read the group (in the current invocation
  1234.      of nn), the u answer will instruct nn to present the articles that were
  1235.      unread when you entered nn.
  1236.  
  1237. a    This instruct nn to present all articles in the group.
  1238.  
  1239. sword or =word
  1240.      This instructs nn to search all articles in the groups, but only present
  1241.      the articles containing the word word in the subject. Notice that case is
  1242.      ignored when searching for the word in the subject lines.
  1243.  
  1244. nword
  1245.      Same as the s form except that it searched for articles where the sender
  1246.      name matches word.
  1247.  
  1248. eword
  1249.      Same as the s form except that it Psearched for articles where either the
  1250.      subject or the sender name matches word.
  1251.  
  1252. word = /regexp
  1253.      When the first character of the word specified with the s, n, and e forms
  1254.      is a slash `/', the rest of the input is interpreted as a regular
  1255.      expression to search for. Notice that regular expression matching is case
  1256.      insensitive when case-fold-search is set (default).
  1257.  
  1258. return
  1259.      The meaning of an empty answer depends on the context: if there are
  1260.      unread articles in the specified group the unread articles will be
  1261.      presented, otherwise all articles in the group will be included in the
  1262.      menu.
  1263.  
  1264. If you specified the current group, and the menu already contains all the
  1265. available articles, nn will directly prompt for a word to search for in the
  1266. subject of all articles (the prompt will be an equal sign.)
  1267.  
  1268. When the goto command creates a new menu level, nn will not perform auto kill
  1269. or selection in the group. You can use the + command in menu mode to perform
  1270. the auto-selections.
  1271.  
  1272. There are three commands in the goto family:
  1273.  
  1274. G    {goto-group}
  1275.      This is the general goto command described above.
  1276.  
  1277. B    {back-group}
  1278.      Backup one or more groups. You can hit this key one or more times to go
  1279.      back in the groups already presented (including those without new
  1280.      articles); when you have found the group you are looking for, hit space
  1281.      to enter it.
  1282.  
  1283. A    {advance-group}
  1284.      Advance one or more groups. This command is similar to the B command, but
  1285.      operates in the opposite direction.
  1286.  
  1287. N    {next-group}
  1288.      When used within an A or B command, it skips forward to the next group in
  1289.      the sequence with unread articles or which has previously been visited.
  1290.  
  1291. P    {previous}
  1292.      When used within an A or B command, it skips backwards to the preceding
  1293.      group in the sequence with unread articles or which has previously been
  1294.      visited.
  1295.  
  1296. Once you have entered an A or Bcommand, you can freely mix the A, B, P, and N
  1297. commands to find the group you want, and you can also use the G command to be
  1298. prompted for a group name.
  1299.  
  1300. To show the use of the goto command some typical examples on its use are given
  1301. below:
  1302. "Present the unread articles in the dk.general group"
  1303.       G dk.general return u
  1304. "Jump directly to the gnu.emacs group and continue from there"
  1305.       G gnu.emacs return j
  1306. "Include the last 10 READ articles in the current group menu"
  1307.       G 10 return
  1308. "Find all articles in rec.music.misc on the subject Floyd"
  1309.       G rec.music.misc return
  1310.       = floyd return
  1311. "Open the folder +nn"
  1312.       G +nn return
  1313. "Split current article as a digest (in reading mode)"
  1314.       G %
  1315.  
  1316. Related variables: case-fold-search, default-save-file, folder-save-file
  1317.  
  1318. From: NN
  1319. Subject: AUTOMATIC KILL AND SELECTION
  1320.  
  1321. When there is a subject or an author which you are either very interested in,
  1322. or find completely uninteresting, you can easily instruct nn to auto-select or
  1323. auto-kill articles with specific subjects or from specific authors. These
  1324. instructions are stored in a kill file, and the most common types of entries
  1325. can be created using the following command:
  1326.  
  1327. K    {kill-select}
  1328.      Create an entry in your personal kill file. The contents of the entry is
  1329.      specified during a short dialog that is described in details below. This
  1330.      command is available in both selection and reading mode.
  1331.  
  1332. Entries in the kill file may apply to a single newsgroup or to all newsgroups.
  1333. Furthermore, entries may be permanent or they may be expired a given number of
  1334. days after their entry.
  1335.  
  1336. To increase performance, nn uses a compiled version of the kill file which is
  1337. read in when nn is invoked. The compiled kill file will automatically be
  1338. updated if the normal kill file has been modified.
  1339.  
  1340. The following dialog is used to build the kill file entry:
  1341.  
  1342. AUTO (k)ill or (s)elect (CR => Kill subject 30 days)
  1343.      If you simply want nn to kill all articles with the subject of the
  1344.      current article (in reading mode) or a specific article (which nn will
  1345.      prompt for in selection mode), just hit return. This will cause nn to
  1346.      create an entry in the kill file to kill the current (or specified)
  1347.      subject in the current group for a period of 30 days (which should be
  1348.      enough for the discussion to die out).
  1349.      You can control the default kill period, or change it into a "select"
  1350.      period via the default-kill-select variable.
  1351.      If this "default behaviour" is not what you want, just answer either k or
  1352.      s to kill or select articles, respectively, which will bring you on to
  1353.      the rest of the questions.
  1354.  
  1355. AUTO SELECT on (s)ubject or (n)ame  (s)
  1356.      (The SELECT will be substituted with KILL depending on the previous
  1357.      answer). Here you specify whether you want the kill or select to depend
  1358.      on the subject of the article (s or space), or on the name of the author
  1359.      (n).
  1360.  
  1361. SELECT NAME:
  1362.      (Again SELECT may be substituted with KILL and SUBJECT may replace NAME).
  1363.      You must now enter a name (or subject) to select (or kill). In reading
  1364.      mode, you may just hit return (or %) to use the name (or subject) of the
  1365.      current article. In selection mode, you can use the name (or subject)
  1366.      from an article on the menu by answering with % followed by the
  1367.      corresponding article identifier.
  1368.      When the name or subject is taken from an article (the current or one
  1369.      from the menu), nn will only select or kill articles where the name or
  1370.      subject matches the original name or subject exactly including case.
  1371.      If the first character typed at the prompt is a slash `/', the rest of
  1372.      the line is used as a regular expression which is used to match the name
  1373.      or subject (case insensitive).
  1374.      Otherwise, nn will select or kill articles which contain the specified
  1375.      string anywhere in the name or subject (ignoring case).
  1376.  
  1377. SELECT in (g)roup `dk.general' or in (a)ll groups  (g)
  1378.      You must now specify whether the selection or kill should apply to the
  1379.      current group only (g or space) or to all groups (a).
  1380.  
  1381. Lifetime of entry in days (p)ermanent  (30)
  1382.      You can now specify the lifetime of the entry, either by entering a
  1383.      number specifying the number of days the entry should be active, or p to
  1384.      specify the entry as a permanent entry. An empty reply is equivalent to
  1385.      30 days.
  1386.  
  1387. CONFIRM SELECT ....
  1388.      Finally, you will be asked to confirm the entry, and you should
  1389.      especially note the presence or absence of the word exact which specify
  1390.      whether an exact match applies for the entry.
  1391.  
  1392. Related variables: default-kill-select, kill.
  1393.  
  1394. From: NN
  1395. Subject: THE FORMAT OF THE KILL FILE
  1396.  
  1397. The kill file consists of one line for each entry. Empty lines and lines
  1398. starting with a # character are ignored. nn automatically places a # character
  1399. in the first position of expired entries when it compiles the kill file. You
  1400. can then edit the kill file manually from time to time to clean out these
  1401. entries.
  1402.  
  1403. Each line has the following format
  1404.       [expire time :] [group name] : flags : string [: string]...
  1405.  
  1406. Permanent entries have no expire time (in which case the colon is omitted as
  1407. well!). Otherwise, the expire time defines the time (as a time_t value) when
  1408. the entry should be expired.
  1409.  
  1410. The group name field can have three forms:
  1411.  
  1412. news.group.name
  1413.      If it is the name of a single news group (e.g. comp.unix), the entry
  1414.      applies to that group only.
  1415.  
  1416. /regular expression
  1417.      If it starts with a slash `/' followed by a regular expression (e.g.
  1418.      /^news\..*), the entry applies to all groups whose name are matched by
  1419.      the regular expression.
  1420.  
  1421. empty
  1422.      An empty group field will apply the entry to all groups.
  1423.  
  1424. The flags field consists of a list of characters which identifies the type of
  1425. entry, and the interpretation of each string field. When used, the flag
  1426. characters must be used in the order in which they are described below:
  1427.  
  1428. ~    (optional)
  1429.      When this flag is present on any of the entries for a specific group, it
  1430.      causes all entires which are not auto-selected to be killed. This is a
  1431.      simple way to say: I'm interested in this and that, but nothing else.
  1432.  
  1433. +    or ! (optional)
  1434.      Specify an auto-select + or an auto-kill ! entry, respectively. If
  1435.      neither are used, the article is neither selected nor killed which is
  1436.      useful in combination with the `~' flag.
  1437.  
  1438. > (optional)
  1439.      When used with a subject (flag s), the kill entry only matches follow-ups
  1440.      to that subject (i.e. where the Subject: line starts with Re:). For
  1441.      example, to kill all "Re:"'s in rec.humor use the following kill entry:
  1442.      rec.humor:!>s/:.
  1443.  
  1444. n or s or a (mandatory)
  1445.      Specify whether the corresponding string applies to the name n or to the
  1446.      subject s of an article. If flag a is used, the corresponding string is
  1447.      ignored (but must be present), and the entry applies to articles with a
  1448.      non-empty References: line.
  1449.  
  1450. / (optional)
  1451.      Specifies that the corresponding string is a regular expression which the
  1452.      sender or subject is matched against. If not specified, a simple string
  1453.      match is performed using the given string.
  1454.  
  1455. = (optional)
  1456.      Specifies that the match against the name or subject is case sensitive.
  1457.      Furthermore, when regular expression matching is not used, the name or
  1458.      subject must be of the same length of the string to match. Otherwise, the
  1459.      match will be case insensitive, and a string may occur anywhere in the
  1460.      name or subject to match.
  1461.  
  1462. | or & (mandatory if multiple strings)
  1463.      If more than one string is specified, the set of flags corresponding to
  1464.      each string must be separated by either an or operator `|' or an and
  1465.      operator `&'. The and operator has a higher precedence than the or
  1466.      operator, e.g. a complex match expression a|b&c|d will succeed if either
  1467.      of a, b&c, or d matches.
  1468.  
  1469. The string field in the entry is the name, subject or regular expression that
  1470. will be matched against the name or subject of each article in the group (or
  1471. all groups). Colons and backslashes must be escaped with a backslash in the
  1472. string.
  1473.  
  1474. Example 1: Auto-select articles from `Tom Collins' (exact) on subject `News'
  1475. in all groups:
  1476.       :+n=&s:Tom Collins:News
  1477. Example 2: Kill all articles which are neither from `Tom' or `Eve' in
  1478. some.group. Select only articles from Eve:
  1479.       some.group:~n:Tom
  1480.       some.group:+n:Eve
  1481. The second example can also be written as a single entry with an or operator
  1482. (in this case, the select/kill attribute only applies to the succeeding
  1483. strings):
  1484.       some.group:~n|+n:Tom:Eve
  1485.  
  1486. To remove expired entries, to "undo" a K command, and to make the more
  1487. advanced entries with more than one string, you will have to edit the kill
  1488. file manually. To recompile the file, you can use the :compile command. When
  1489. you invoke nn, it will also recompile the kill file if the compiled version is
  1490. out of dat.
  1491.  
  1492. From: NN
  1493. Subject: SHELL ESCAPES
  1494.  
  1495. The ! commands available in selection and reading mode are identical in
  1496. operation (with one exception). When you enter the shell escape command, you
  1497. will be prompted for a shell command. This command will be fed to the shell
  1498. specified in the shell variable (default loaded from the SHELL environment
  1499. variable or /bin/sh) after the following substitutions have been performed on
  1500. the command:
  1501.  
  1502. File name expansion
  1503.      The earlier described file name expansions will be performed on all
  1504.      arguments.
  1505.  
  1506. $G   will be substituted with the name of the current news group.
  1507.  
  1508. $L   will be substituted with the last component of the name of the current
  1509.      news group.
  1510.  
  1511. $F   will be substituted with the name of the current news group with the
  1512.      periods replaced by slashes.
  1513.  
  1514. $N   will be substituted with the (local) article number (only defined in
  1515.      reading mode).
  1516.  
  1517. $A   is replaced by the full path name of the file containing the current
  1518.      article (only defined in reading mode).
  1519.  
  1520. %    Same as $A.
  1521.  
  1522. $(VAR)
  1523.      is replaced by the string value of the environment variable VAR.
  1524.  
  1525. When the shell command is completed, you will be asked to hit any key to
  1526. continue. If you hit the ! key again, you will be prompted for a new shell
  1527. command. Any other key will redraw the screen and return you to the mode you
  1528. came from.
  1529.  
  1530. Related variables: shell, shell-restrictions.
  1531.  
  1532. From: NN
  1533. Subject: MISCELLANEOUS COMMANDS
  1534.  
  1535. Below are more useful commands which are available in both selection and
  1536. reading modes.
  1537.  
  1538. U    {unsub}
  1539.      Unsubscribe to the current group. You will not see this group any more
  1540.      unless you explicitly request it. If the variable unsubscribe-mark-read
  1541.      is set, all articles in the group will be marked read when you
  1542.      unsubscribe.
  1543.           If the variable keep-unsubscribed is not set, the group will be
  1544.      removed from .newsrc. If you are not subscribing to the group, you will
  1545.      be given the possibility to resubscribe to the group! This may be used in
  1546.      connection with the G command to resubscribe a group.
  1547.  
  1548. C    {cancel}
  1549.      Cancel (delete) an article in the current group or folder. Cancelling
  1550.      articles in a folder will cause the folder to be rewritten when it is
  1551.      closed. In selection mode, you will be prompted for the identifier of the
  1552.      article to cancel. Normal users can only cancel their own articles.
  1553.  
  1554. Y    {overview}
  1555.      Provide an overview of the groups with unread articles.
  1556.  
  1557. "    {layout}
  1558.      Change menu layout in selection mode. The menu will be redrawn using the
  1559.      next layout (cycling through ..., 2, 3, 4, 0, 1, ...)
  1560.  
  1561. Most of the commands in nn are bound to a key and can be activated by a single
  1562. keystroke. However, there are a few commands that cannot be bound to a key
  1563. directly.
  1564.  
  1565. As shown in the keystroke command descriptions, all commands have a name, and
  1566. it is possible to activate a command by name with the extended command key
  1567. (:). Hitting this key will prompt you for the name of a command (and
  1568. parameters). For example, an alternative to hitting the R key to reply to an
  1569. article is to enter the extended command :reply followed by return. The :post
  1570. and :unshar commands described earlier can also be bound to a key. The
  1571. complete list of commands which can be bound to keys is provided in the
  1572. section on Key Mappings below.
  1573.  
  1574. The following extended commands cannot be bound to a key, mainly because they
  1575. require additional parameters on the prompt line, or because it should not be
  1576. possible to activate them too easily.
  1577.  
  1578. :admin
  1579.      Enter administrative mode. This is identical in operation to the nnadmin
  1580.      (1M) program.
  1581.  
  1582. :bug Prepare and send a bug report to the nn-bugs mailing address.
  1583.  
  1584. :cd [ directory ]
  1585.      Change current working directory. If the directory argument is not
  1586.      provided, nn will prompt for it.
  1587.  
  1588. :clear
  1589.      Clear the screen (without redraw). This may be useful at the beginning of
  1590.      the init file (possibly guarded by "on program nn"), or in some macros.
  1591.  
  1592. :compile
  1593.      Recompile the kill file. This is not necessary under normal operation
  1594.      since nn automatically compiles the file on start-up if it has changed,
  1595.      but it can be used if you modify the kill file while nn is suspended.
  1596.  
  1597. :coredump
  1598.      Abort with a core dump. For debugging purposes only.
  1599.  
  1600. :define macro
  1601.      Define macro number macro as described in the Macro Definition section
  1602.      below. If macro is omitted, the next free macro number will be chosen.
  1603.  
  1604. :dump table
  1605.      Same as the :show command described below.
  1606.  
  1607. :help [ subject ]
  1608.      Provide online help on the specified subject. If you omit the subject, a
  1609.      list of the available topics will be given.
  1610.  
  1611. :load [ file ]
  1612.      Load the specified file. If the file argument is omitted, the init file
  1613.      is reloaded. The sequence part (if present) is ignored.
  1614.  
  1615. :local variable [ value ]
  1616.      Make the variable local to the current group. Subsequent changes to the
  1617.      variable will only be effective until the current group is left. If a
  1618.      value is specified, it will be assigned to the local variable. To assign
  1619.      a new value to a boolean variable, the values on and off must be used.
  1620.  
  1621. :man Call up the online manual. The manual is presented as a normal folder
  1622.      with the program name in the `From' field and the section title in the
  1623.      `subject' field. All the normal commands related to a folder works for
  1624.      the online manual as well, e.g. you can save and print sections of the
  1625.      manual.
  1626.  
  1627. :map arguments
  1628.      This is the command used for binding commands to the keys. It is fully
  1629.      described in the Key Mapping section below.
  1630.  
  1631. :mkdir [ directory ]
  1632.      Create the directory (and the directories in its path). It will prompt
  1633.      for at directory name if the argument is omitted.
  1634.  
  1635. :motd
  1636.      Show the message of the day (maintained by the news administrator in the
  1637.      file "motd" in the lib directory. This file is automatically displayed on
  1638.      start-up whenever it changes if the motd variable is set.
  1639.  
  1640. :pwd Print path name of current working directory on message line.
  1641.  
  1642. :q   Has no effect besides redrawing the screen if necessary. If an extended
  1643.      command (one which is prefixed by a :) produces any output requirering
  1644.      the screen to be redrawn, the screen will not be redrawn immediately if
  1645.      the variable delay-redraw is set (useful on slow terminals). Instead
  1646.      another : prompt is shown to allow you to enter a new extended command
  1647.      immediately. It is sufficient to hit return to redraw the screen, but it
  1648.      has been my experience that entering q return in this situation happens
  1649.      quite often, so it was made a no-op.
  1650.  
  1651. :q!  Quit nn without updating the .newsrc file.
  1652.  
  1653. :Q   Quit nn. This is equivalent to the normal Q command.
  1654.  
  1655. :rmail
  1656.      Open your mailbox (see the mail variable) as a folder to read the
  1657.      incoming messages. This is not a full mail interface (depending on the nn
  1658.      configuration, you may not be able to delete messages, add cc: on
  1659.      replies, etc), but it can give you a quick glance at new mail without
  1660.      leaving nn.
  1661.  
  1662. :set variable [ value ]
  1663.      Set a boolean variable to true or assign the value to a string or integer
  1664.      variable. The :set command is described in details in the section on
  1665.      VARIABLES.
  1666.  
  1667. :sh  Suspend nn, or if that is not possible, spawn an interactive shell.
  1668.  
  1669. :show groups mode
  1670.      Show the total number or the number of unread articles in the current
  1671.      group, depending on mode: all (list the number of unread articles in all
  1672.      groups including groups which you have unsubscribed to), total (list the
  1673.      total number of articles in all existing groups), sequence (list unread
  1674.      groups in presentation sequence order), subscr (list all subscribed
  1675.      groups), unsub (list unsubscribed groups only). Any other mode results in
  1676.      a listing of the number of unread articles in all subscribed groups
  1677.      including those you have suppressed with the `!' symbol in the group
  1678.      presentation sequence. To get just the currently unread groups in the
  1679.      presentation sequence, use the `Y' {overview} command.
  1680.  
  1681. :show kill
  1682.      Show the kill entries that applies to the current group and to all
  1683.      groups.
  1684.  
  1685. :show rc [ group ]
  1686.      Show the .newsrc and select file entries for the current or the specified
  1687.      group.
  1688.  
  1689. :show map [ mode ]
  1690.      Show the key bindings in the current or specified mode.
  1691.  
  1692. :sort [ mode ]
  1693.      Reorder the articles on the menu according to mode or if omitted to the
  1694.      default sort-mode. The following sorting modes are available: arrival
  1695.      (list articles in the order in which they arrived on the system), subject
  1696.      (articles with identical subjects are grouped and ordered after age of
  1697.      the oldest article in the group), lexical (subjects in lexicographical
  1698.      order), age (articles ordered after posting date only), and sender
  1699.      (articles ordered after sender's name).
  1700.  
  1701. :toggle variable
  1702.      Toggle a boolean variable.
  1703.  
  1704. :unread [ group ] [ articles ]
  1705.      Mark the current (or specified) group as unread. If the articles argument
  1706.      is omitted, the number of unread articles in the group will be set to the
  1707.      number of unread articles when nn was invoked. Otherwise, the argument
  1708.      specifies the number of unread articles.
  1709.  
  1710. :unset variable
  1711.      Set a boolean variable to false or clear an integer variable.
  1712.  
  1713. :x   Quit nn and mark all articles in the current group as read!
  1714.  
  1715. Related variables: backup, bug-report-address, delay-redraw,
  1716. keep-unsubscribed, unsubscribe-mark-read, mail, pager, sort-mode.
  1717.  
  1718. From: NN
  1719. Subject: CATCH UP
  1720.  
  1721. If you have not read news for some time, there are probably more news than you
  1722. can cope with. Using the option -a0 nn will put you into catch-up mode.
  1723.  
  1724. The first question you will get is whether to catch up interactively or
  1725. automatically. If you instruct nn to catch up automatically, it will simply
  1726. mark all articles in all groups as read, thus bringing you completely
  1727. up-to-date.
  1728.  
  1729. If you choose the interactive mode, nn will locate all groups with unread
  1730. articles, and for each group it will prompt you for an action to take on the
  1731. group. An action is selected using a single letter followed by return. The
  1732. following actions are available:
  1733.  
  1734. y    Mark all articles as read in current group.
  1735.  
  1736. n    Do not update group (this is the default action if you just hit return).
  1737.  
  1738. r    Enter reading mode to read the group.
  1739.  
  1740. U    Unsubscribe to the group.
  1741.  
  1742. ?    Give a list of actions.
  1743.  
  1744. q    Quit. When you quit, nn will ask whether the rest of the groups should be
  1745.      updated unconditionally or whether they should remain unread.
  1746.  
  1747. From: NN
  1748. Subject: VARIABLES AND OPTIONS
  1749.  
  1750. It is possible to control the behaviour of nn through the setting (and
  1751. unsetting) of the variables described below. There are several ways of setting
  1752. variables:
  1753. - Through command line options when nn is invoked.
  1754. - Through assignments on the command line when nn is invoked.
  1755. - Through global set commands in the init file.
  1756. - Through set or local commands executed from entry macros.
  1757. - Through the :set extended command when you run nn.
  1758.  
  1759. There are four types of variables:
  1760. - Boolean variables
  1761. - Integer variables
  1762. - String variables
  1763. - Key variables
  1764.  
  1765. Boolean variables control a specific function in nn, e.g. whether the current
  1766. time is shown in the prompt line. A boolean variable is set to true with the
  1767. command
  1768.       set variable
  1769. and it is set to false with either of the following (equivalent) commands:
  1770.       unset variable
  1771.       set novariable
  1772.  
  1773. You can also toggle the value of a boolean variable using the command:
  1774.       toggle variable
  1775.  
  1776. For example:
  1777.       set time
  1778.       unset time
  1779.       set notime
  1780.       toggle time
  1781.  
  1782. Integer variables control an amount e.g. the size of the preview window, or
  1783. the maximum number of articles to read in each group. They are set with the
  1784. following command:
  1785.       set variable value
  1786. In some cases, not setting an integer value has a special meaning, for
  1787. example, not having a minimal preview window or reading all articles in the
  1788. groups no matter how many there are. The special meaning can be re-established
  1789. by the following command:
  1790.       unset variable
  1791. For example:
  1792.       set window 7
  1793.       unset limit
  1794.  
  1795. String variables may specify directory names, default values for prompts, etc.
  1796. They are set using the command
  1797.       set variable string
  1798. Normally, the string value assigned to the variable value starts at the first
  1799. non-blank character after the variable name and ends with the last non-blank
  1800. character (excluding comments) on the line. To include leading or trailing
  1801. blanks, or the comment start symbol, #, in the string they must be escaped
  1802. using a backslash `\', e.g. to set included-mark to the string " # ", the
  1803. following assignment can be used:
  1804.       set included-mark \\ \#\\ \ \ # blank-#-blank
  1805. To include a backslash in the string, it must be duplicated `\\'. A backslash
  1806. may also be used to include the following special characters in the string:
  1807. \a=alarm, \b=backspace, \e=escape, \f=form-feed, \n=new-line, \r=return,
  1808. \t=tab.
  1809.  
  1810. Key variables control the keys used to control special functions during user
  1811. input such as line editing and completion. They are set using the command
  1812.       set variable key-name
  1813.  
  1814. The current variable settings can be shown with the :set command:
  1815.  
  1816. :set (without arguments)
  1817.      This will give a listing of the variables which have been set in either
  1818.      the init file or interactively.
  1819.  
  1820. :set all
  1821.      This will give a listing of all variables. Modified variables will be
  1822.      marked with a `*' and local variables will be marked with a `>'.
  1823.  
  1824. :set /regexp
  1825.      This will give a listing of all variables whose name matches the given
  1826.      regular expression.
  1827.  
  1828. :set partial-name space
  1829.      The space (comp1-key) key will complete the variable name as usual, but
  1830.      as a side effect it will display the variable's current value in the
  1831.      message line.
  1832.  
  1833. Variables are global by default, but a local instantiation of the variable can
  1834. be created using the :local command. The local variable will overlay the
  1835. global variable as long as the current group is active, i.e. the global
  1836. variable will be used again when you exit the current group. The initial value
  1837. of the local variable will be the same as the global variable, unless a new
  1838. value is specified in the :local command:
  1839.       :local variable [ value ]
  1840.  
  1841. The following variables are available:
  1842.  
  1843. also-full-digest    (boolean, default false)
  1844.      When a digest is split, the digest itself is not normally included on the
  1845.      menu, and as such the initial adminstrative information is not available.
  1846.      Setting also-full-digest will cause the (unsplit) digest to be included
  1847.      on the menu. These articles are marked with a @ at the beginning of the
  1848.      subject.
  1849.  
  1850. also-subgroups    (boolean, default true)
  1851.      When set, a group name in the presentation sequence will also cause all
  1852.      the subgroups of the group to be included, for example, comp.unix will
  1853.      also include comp.unix.questions, etc. When also-subgroups is not set,
  1854.      subgroups are only included if the group name is followed by a `.' in
  1855.      which case the main group is not included, i.e. `comp.unix' is not
  1856.      included when `comp.unix.' is specified in the presentation sequence, and
  1857.      vice-versa. Following a group name by an asterisk `*', e.g. comp.unix*,
  1858.      will include the group as well as all subgroups independently of the
  1859.      setting of also-subgroups.
  1860.  
  1861. append-signature-mail    (boolean, default false)
  1862.      When false, it is assumed that the .signature file is automatically
  1863.      appended to responses sent via E-mail. If true, .signature will be
  1864.      appended to the letter (see query-signature).
  1865.  
  1866. append-signature-post    (boolean, default false)
  1867.      When false, it is assumed that the .signature file is automatically
  1868.      appended to posted articles. If true, .signature will explicitly be
  1869.      appended to posted articles (see query-signature).
  1870.  
  1871. attributes symbols    (string, default ....)
  1872.      Each element in this string represents a symbol used to represent an
  1873.      article attribute when displayed on the screen. See the section on
  1874.      Marking Articles and Attributes.
  1875.  
  1876. auto-junk-seen    (boolean, default true)
  1877.      When set, articles which have the seen attribute (,) will be marked read
  1878.      when the current group is left. If not set, these articles will still be
  1879.      either unread or marked seen the next time the group is entered (see also
  1880.      confirm-junk-seen and retain-seen-status).
  1881.  
  1882. auto-preview-mode        (boolean, default false)
  1883.      Enables Auto Preview Mode. In this mode, selecting an article on the menu
  1884.      using its article id (letter a-z) will enter preview mode on that article
  1885.      immediately. Furthermore, the `n' {next-article} command will preview the
  1886.      next article on the menu only if it has the same subject as the current
  1887.      article; otherwise, it will return to the menu with the cursor placed on
  1888.      the next article. The continue command at the end of the article and the
  1889.      `=' {goto-menu} returns to the menu immediately as usual.
  1890.  
  1891. auto-read-mode-limit N    (integer, default 0)
  1892.      When operating in auto reading mode, nn will auto-select all unread
  1893.      articles in the group, skip the article selection phase, and enter
  1894.      reading mode directly after entry to the group.
  1895.           Auto reading mode is disabled when auto-read-mode-limit is zero; it
  1896.      is activated unconditionally if the value is negative, and conditionally
  1897.      if the value is greater than zero and the number of unread articles in
  1898.      the current group does not exceed the given value.
  1899.  
  1900. auto-select-subject    (boolean, default false)
  1901.      When set, selecting an article from the menu using the article id (a-z),
  1902.      all articles on the menu with the same subject will automatically be
  1903.      selected as well.
  1904.  
  1905. backup    (boolean, default true)
  1906.      When set, a copy of the initial .newsrc and select files will save be the
  1907.      first time they are changed. nn remembers the initial contents of these
  1908.      files internally, so the backup variable can be set any time if not set
  1909.      on start-up.
  1910.  
  1911. backup-suffix suffix    (string, default ".bak")
  1912.      The suffix appended to file names to make the corresponding backup file
  1913.      name (see backup).
  1914.  
  1915. bug-report-address address    (string, default nn-bugs@dkuug.dk)
  1916.      The mail address to which bug reports created with the :bug command are
  1917.      sent.
  1918.  
  1919. case-fold-search        (boolean, default true)
  1920.      When set, string and regular expression matching will be case
  1921.      independent. This is related to all commands matching on names or
  1922.      subjects, except in connection with auto-kill and auto-select where the
  1923.      individual kill file entries specifies this property.
  1924.  
  1925. collapse-subject offset    (integer, default 25)
  1926.      When set (non-negative), subject lines which are too long to be presented
  1927.      in full on the menus will be "collapsed" by removing a sufficient number
  1928.      of characters from the subject starting at the given offset in the
  1929.      subject. This is useful in source groups where the "Part (01/10)" string
  1930.      sometimes disappears from the menu. When not set (or negative), the
  1931.      subjects are truncated.
  1932.  
  1933. columns col    (integer, default screen width)
  1934.      This variable contains the screen width i.e. character positions per
  1935.      line.
  1936.  
  1937. comp1-key key    (key, default space)
  1938.      The key which gives the first/next completion, and the default value when
  1939.      nn is prompting for a string, e.g. a file name.
  1940.  
  1941. comp2-key key    (key, default tab)
  1942.      The key which ends the current completion and gives the first completion
  1943.      for the next component when nn is prompting for a string, e.g. a file
  1944.      name.
  1945.  
  1946. compress        (boolean, default false)
  1947.      This variable controls whether text compression (see the compress
  1948.      command) is turned on or off when an article is shown. The compression is
  1949.      still toggled for the current article with the compress command key.
  1950.  
  1951. confirm-append        (boolean, default false)
  1952.      When set, nn will ask for confirmation before appending an article to an
  1953.      existing file (see also confirm-create).
  1954.  
  1955. confirm-auto-quit        (boolean, default false)
  1956.      When set, nn will ask for confirmation before quitting after having read
  1957.      the last group. If not confirmed, nn will recycle the presentation
  1958.      sequence looking for groups that were skipped with the `N' {next-group}
  1959.      command. But it will not look for new articles arrived since the
  1960.      invocation of nn.
  1961.  
  1962. confirm-create        (boolean, default true)
  1963.      When set, nn will ask for confirmation before creating a new file or
  1964.      directory when saving or unpacking an article (see also confirm-append).
  1965.  
  1966. confirm-entry        (boolean, default false)
  1967.      When set, nn will ask for confirmation before entering a group with more
  1968.      than confirm-entry-limit unread articles (on the first menu level). It is
  1969.      useful on slow terminals if you don't want to wait until nn has drawn the
  1970.      first menu to be able to skip the group.
  1971.           Answering no to the "Enter?" prompt will cause nn to skip to the
  1972.      next group without marking the current group as read. If you answer by
  1973.      hitting interrupt, nn will ask the question "Mark as read?" which allows
  1974.      you to mark the current group as read before going to the next group. If
  1975.      this second question is also answered by hitting interrupt, nn will quit
  1976.      immediately.
  1977.  
  1978. confirm-entry-limit articles    (integer, default 0)
  1979.      Specifies the minimum number of unread articles in a group for which the
  1980.      confirm-entry functionality is activated.
  1981.  
  1982. confirm-junk-seen        (boolean, default false)
  1983.      When set, nn will require confirmation before marking seen articles as
  1984.      read when auto-junk-seen is set.
  1985.  
  1986. confirm-messages        (boolean, default false)
  1987.      In some cases, nn will sleep one second (or more) when it has shown a
  1988.      message to the user, e.g. in connection with macro debugging. Setting
  1989.      confirm-messages will cause nn to wait for you to confirm all messages by
  1990.      hitting any key. (It will show the symbol <> to indicate that it is
  1991.      awaiting confirmation.)
  1992.  
  1993. cross-filter-seq        (boolean, default true)
  1994.      When set, cross posted articles will be presented in the first possible
  1995.      group, i.e. according to the current presentation sequence (cross-post
  1996.      filtering on sequence). The article is automatically marked read in the
  1997.      other cross posted groups unless you unsubscribe to the first group in
  1998.      which it was shown before reading the other groups. Likewise, it is
  1999.      sufficient to leave the article unread in the first group to keep it for
  2000.      later handling.
  2001.           If not set, cross-postings are shown in the first group occurring on
  2002.      the Newsgroups: line which the user subscribes to (i.e. you let the
  2003.      poster decide which group is most appropriate to read his posting).
  2004.  
  2005. cross-post        (boolean, default false)
  2006.      Normally, nn will only show cross-posted articles in the first subscribed
  2007.      group on the Newsgroups: line. When cross-post is set, nn will show
  2008.      cross-posted articles in all subscribed groups to which they are posted.
  2009.  
  2010. data-bits bits    (integer, default 7)
  2011.      When set to 7, nn will display characters with the 8th bit set using a
  2012.      meta-notation M-7bit-char. If set to 8, these characters are sent
  2013.      directly to the screen (unless monitor is set).
  2014.      It also controls whether keyboard input is 7 or 8 bits, and thus whether
  2015.      key maps contain 127 or 255 entries. See the key mapping section for more
  2016.      details.
  2017.  
  2018. date        (boolean, default true)
  2019.      If set nn will show the article posting date when articles are read.
  2020.  
  2021. debug mask    (integer, default 0)
  2022.      Look in the source if you are going to use this.
  2023.  
  2024. decode-header-file file    (string, default "Decode.Headers")
  2025.      The name of the file in which the header and initial text of articles
  2026.      decoded with the :decode command is saved. Unless the file name starts
  2027.      with a `/', the file will be created in the same directory as the decoded
  2028.      files. The information is not saved if this variable is not set.
  2029.  
  2030. decode-skip-prefix N    (integer, default 2)
  2031.      When non-null, the :decode command will automatically skip upto N
  2032.      characters at the beginning of each line to find valid uuencoded data.
  2033.      This allows nn to automatically decode (multi-part) postings which are
  2034.      both uuencoded and packed with shar.
  2035.  
  2036. default-distribution distr    (string, default not set)
  2037.      The distribution to use as the default suggestion when posting articles
  2038.      using the post command. If it is not set, the first component of the
  2039.      group name is used as the suggested distribution, e.g. `comp' when
  2040.      posting to comp.whatever.
  2041.  
  2042. default-kill-select [1]days    (number, default 30)
  2043.      Specifies the default action for the K {kill-select} command if the first
  2044.      prompt is answered by return. It contains the number of days to keep the
  2045.      kill or select entry in the kill file (1-99 days). If it has the value
  2046.      days+100 (e.g. 130), it denotes that the default action is to select
  2047.      rather than kill on the subject for the specified period.
  2048.  
  2049. default-save-file file    (string, default +$F)
  2050.      The default save file used when saving articles in news groups where no
  2051.      save file has been specified in the init file (either in a save-files
  2052.      section or in the presentation sequence). It can also be specified using
  2053.      the abbreviation "+" as the file name when prompted for a file name even
  2054.      in groups with their own save file.
  2055.  
  2056. delay-redraw        (boolean, default false)
  2057.      Normally, nn will redraw the screen after extended commands (:cmd) that
  2058.      clear the screen. When delay-redraw is set nn will prompt for another
  2059.      extended command instead of redrawing the screen (hit return to redraw).
  2060.  
  2061. echo-prefix-key        (boolean, default true)
  2062.      When true, hitting a prefix key (see the section on key mapping below)
  2063.      will cause the prefix key to be echoed in the message line to indicate
  2064.      that another key is expected.
  2065.  
  2066. edit-patch-command    (boolean, default true)
  2067.      When true, the :patch command will show the current patch-command and
  2068.      give you a chance to edit it before applying it to the articles.
  2069.  
  2070. edit-print-command    (boolean, default true)
  2071.      When true, the print command will show the current printer command and
  2072.      give you a chance to edit it before printing the articles. Otherwise the
  2073.      articles are just printed using the current printer command.
  2074.  
  2075. edit-response-check    (boolean, default true)
  2076.      When editing a response to an article, it normally does not have any
  2077.      meaning to send the initial file prepared by nn unaltered, since it is
  2078.      either empty or only contains included material. When this variable is
  2079.      set, exiting the editor without having changed the file will
  2080.      automatically abort the response action without confirmation.
  2081.  
  2082. edit-unshar-command    (boolean, default false)
  2083.      When true, the :unshar command will show the current unshar-command and
  2084.      give you a chance to edit it before applying it to the articles.
  2085.  
  2086. editor command    (string, default not set)
  2087.      When set, it will override the current EDITOR environment variable when
  2088.      editing responses and new articles.
  2089.  
  2090. embedded-header-escape string    (string, default '~')
  2091.      When saving an article to a file, header lines embedded in the body of
  2092.      the article are escaped using this string to make it possible for nn to
  2093.      split the folder correctly afterwards.
  2094.  
  2095. entry-report-limit articles    (integer, default 300)
  2096.      Normally, nn will just move the cursor to the upper left corner of the
  2097.      screen while it is reading articles from the database on entry to a
  2098.      group. For large groups this may take more than a fraction of a second,
  2099.      and nn can then report what it is doing. If it must read more articles
  2100.      than the number specified by this variable, nn will report which group
  2101.      and how many articles it is reading.
  2102.  
  2103. erase-key key    (key, default tty erase key)
  2104.      The key which erases the last input character when nn is prompting for a
  2105.      string, e.g. a file name.
  2106.  
  2107. expert        (boolean, default false)
  2108.      If set nn will use slightly shorter prompts (e.g. not tell you that ?
  2109.      will give you help), and be a bit less verbose in a few other cases (e.g.
  2110.      not remind you that posted articles are not available instantly).
  2111.  
  2112. expired-message-delay pause    (integer, default 1)
  2113.      If a selected article is found to have been expired, nn will normally
  2114.      give a message about this and sleep for a number of seconds specified by
  2115.      this variable. Setting this variable to zero will still make nn give the
  2116.      message without sleeping afterwards. Setting it to -1 will cause the
  2117.      message not to be shown at all.
  2118.  
  2119. flow-control    (boolean, default true)
  2120.      When set, nn will turn on xon/xoff flow-control before writing large
  2121.      amounts of text to the screen. This should guard against lossage of
  2122.      output, but in some network configurations it has had the opposite
  2123.      effect, losing several lines of the output. This variable is always true
  2124.      on systems with CBREAK capabilities which can do single character reads
  2125.      without disabling flow control.
  2126.  
  2127. flush-typeahead    (boolean, default false)
  2128.      When true, nn will flush typeahead prior to reading commands from the
  2129.      keyboard. It will not flush typeahead while reading parameters for a
  2130.      command, e.g. file names etc.
  2131.  
  2132. folder directory    (string, default ~/News)
  2133.      The full pathname of the folder directory which will replace the + in
  2134.      folder names. It will be initialized from the FOLDER environment variable
  2135.      if it is not set in the init file.
  2136.  
  2137. folder-save-file file    (string, default not set)
  2138.      The default save file used when saving articles from a folder.
  2139.  
  2140. fsort        (boolean, default true)
  2141.      When set, folders are sorted alphabetically according to the subject (and
  2142.      age). Otherwise, the articles in a folder will be presented in the
  2143.      sequence in which they were saved.
  2144.  
  2145. header-lines list    (string, no default)
  2146.      When set, it determines the list of header fields that are shown when an
  2147.      article is read instead of the normal one line header showing the author
  2148.      and subject. See the full description in the section on Customized
  2149.      Article Headers below.
  2150.  
  2151. help-key key    (key, default ?)
  2152.      The key which ends the current completion and gives a list of possible
  2153.      completions for the next component when nn is prompting for a string,
  2154.      e.g. a file name.
  2155.  
  2156. ignore-xon-xoff        (boolean, default false)
  2157.      Normally, nn will ignore ^S and ^Q in the input from the terminal (if
  2158.      they are not handled in the tty driver). Setting this variable will treat
  2159.      these characters as normal input.
  2160.  
  2161. include-art-id        (boolean, default false)
  2162.      The first line in a response with included material normally reads
  2163.      "...somebody... writes:" without a reference to the specific article from
  2164.      which the quotation was taken (this is found in the References: line).
  2165.      When this variable is set, the line will also include the article id of
  2166.      the referenced article: "In ...article... ... writes:".
  2167.  
  2168. include-full-header    (boolean, default false)
  2169.      When set, the mail (M) command will always include the full header of the
  2170.      original article. If it is not set, it only includes the header when the
  2171.      article is forwarded without being edited.
  2172.  
  2173. include-mark-blank-lines    (boolean, default false)
  2174.      When set, the included-mark is placed on blank lines in included
  2175.      articles. Otherwise, blank lines are left blank (to make it easy to
  2176.      delete whole paragraphs with `d}' in vi and `C-@ M-] C-W' in emacs).
  2177.  
  2178. included-mark string    (string, default ">")
  2179.      This string is prefixed to all lines in the original article that are
  2180.      included in a reply or a follow-up. (Now you have the possibility to
  2181.      change it, but please don't. Lines with a mixture of prefixes like
  2182.           : orig-> <> } ] #- etc.
  2183.      are very difficult to comprehend. Let's all use the standard folks! (And
  2184.      hack inews if it is the 50% rule that bothers you.)
  2185.  
  2186. inews shell-command    (string, default "INEWS_PATH -h")
  2187.      The program which is invoked by nn to deliver an article to the news
  2188.      transport. The program will be given a complete article including a
  2189.      header containing the newsgroups to which the article is to be posted.
  2190.      See also inews-pipe-input. It is not used when cancelling an article!
  2191.  
  2192. inews-pipe-input        (boolean, default true)
  2193.      When set, the article to be posted will be piped into the inews program.
  2194.      Otherwise, the file containing the article will be given as the first
  2195.      (and only) argument to the inews command.
  2196.  
  2197. keep-unsubscribed        (boolean, default true)
  2198.      When set, unsubscribed groups are kept in .newsrc. If not set, nn will
  2199.      automatically remove all unsubscribed from .newsrc if tidy-newsrc is set.
  2200.      See also unsubscribe-mark-read.
  2201.  
  2202. kill        (boolean, default true)
  2203.      If set, nn performs automatic kill and selection based on the kill file.
  2204.  
  2205. kill-debug        (boolean, default false)
  2206.      When set, nn will display a trace of the auto-kill/select process on
  2207.      entry to a group.
  2208.  
  2209. kill-key key    (key, default tty kill key)
  2210.      The key which deletes the current line when nn is prompting for a string,
  2211.      e.g. a file name.
  2212.  
  2213. layout number    (integer, default 1)
  2214.      Set the menu layout. The argument must be a number between 0 and 4.
  2215.  
  2216. limit max-articles    (integer, default infinite)
  2217.      Limit the maximum number of articles presented in each group to
  2218.      max-articles. The default is to present all unread articles no matter how
  2219.      many there are. Setting this variable, only the most recent max-articles
  2220.      articles will be presented, but all the articles will still be marked as
  2221.      read. This is useful to get up-to-date quickly if you have not read news
  2222.      for a longer period.
  2223.  
  2224. lines lin    (integer, default screen height)
  2225.      This variable contains the screen height i.e. number of lines.
  2226.  
  2227. long-menu        (boolean, default false)
  2228.      If set nn will not put an empty line after the header line and an empty
  2229.      line before the prompt line; this gives you two extra menu lines.
  2230.  
  2231. macro-debug    (boolean, default false)
  2232.      If set nn will trace the execution of all macros. Prior to the execution
  2233.      of each command or operation in a macro, it will show the name of the
  2234.      command or the input string or key stroke at the bottom of the screen.
  2235.  
  2236. mail file    (string, default not set)
  2237.      file must be a full path name of a file. If defined, nn will check for
  2238.      arrival of new mail every minute or so by looking at the specified file.
  2239.  
  2240. mail-format    (boolean, default false)
  2241.      When set, nn will save articles in a format that is compatible with
  2242.      normal mail folders.
  2243.  
  2244. mail-header headers    (string, default not set)
  2245.      The headers string specifies one or more extra header lines (separated by
  2246.      semi-colons `;') which are added to the header of mail sent from nn using
  2247.      the reply and mail commands. For example:
  2248.           set mail-header Reply-To: storm@texas.dk;Organization: TI - DK
  2249.  
  2250. mail-record file    (string, default not set)
  2251.      file must be a full path name of a file. If defined, all replies and mail
  2252.      will be saved in this file in standard mailbox format, i.e. you can use
  2253.      you favourite mailer (and nn) to look at the file.
  2254.  
  2255. mail-script file    (string, default not set)
  2256.      When set, nn will use the specified file instead of the standard aux
  2257.      script when executing the reply and mail commands.
  2258.  
  2259. mailer shell-command    (string, default REC_MAIL)
  2260.      The program which is invoked by nn to deliver a message to the mail
  2261.      transport. The program will be given a complete mail message including a
  2262.      header containing the recipient's address. See also mailer-pipe-input.
  2263.  
  2264. mailer-pipe-input        (boolean, default true)
  2265.      When set, the message to be sent will be piped into the mailer program.
  2266.      Otherwise, the file containing the message will be given as the first
  2267.      (and only) argument to the mailer command.
  2268.  
  2269. marked-by-next-group N    (integer, default 0)
  2270.      Specifies the amount of (unmarked) articles on the menu marked seen by
  2271.      the N {next-group} command in selection mode. See marked-by-read-skip for
  2272.      possible values of N.
  2273.  
  2274. marked-by-read-return N    (integer, default 0)
  2275.      Specifies the amount of (unmarked) articles on the menu marked seen by
  2276.      the Z {read-return} command in selection mode. See marked-by-read-skip
  2277.      for possible values of N.
  2278.  
  2279. marked-by-read-skip N    (integer, default 4)
  2280.      Specifies the amount of (unmarked) articles on the menu marked seen by
  2281.      the X {read-skip} command in selection mode. The following values of N
  2282.      are recognized:
  2283.           0: No articles are marked seen
  2284.           1: Current page is marked seen
  2285.           2: Previous pages are marked seen
  2286.           3: Previous and current pages are marked seen
  2287.           4: All pages are marked seen
  2288.  
  2289. mark-overlap    (boolean, default false)
  2290.      When set, nn will draw a line (using the underline capabilities of the
  2291.      terminal if possible) to indicate the end of the overlap (see the overlap
  2292.      variable).
  2293.  
  2294. mark-overlap-shading    (boolean, default false)
  2295.      When set, nn will shade overlapping lines (see the overlap variable)
  2296.      using the attributes defined by the shading-on and shading-off variables
  2297.      (of if not set, with the underline attribute). This is typically used to
  2298.      give overlapping lines a different colour on terminals which have this
  2299.      capability.
  2300.  
  2301. message-history N    (integer, default 15)
  2302.      Specifies the maximum number, N, of older messages which can be recalled
  2303.      with the ^P {message} command.
  2304.  
  2305. min-window size    (integer, default 7)
  2306.      When the window variable is not set, nn will clear the screen to preview
  2307.      an article if there are less than size unused lines at the bottom of the
  2308.      menu screen.
  2309.  
  2310. mmdf-format    (boolean, default false)
  2311.      When set, nn will save articles in MMDF format.
  2312.  
  2313. monitor        (boolean, default false)
  2314.      When set, nn will show all characters in the received messages using a
  2315.      "cat -v" like format. Otherwise, only the printable characters are shown
  2316.      (default).
  2317.  
  2318. motd        (boolean, default true)
  2319.      When set, nn will display the message of the day on start-up if it has
  2320.      changed since it was last shown. The message is taken from the file
  2321.      "motd" in the lib directory. It can also be shown (again) using the :motd
  2322.      command.
  2323.  
  2324. new-group-action action    (integer, default 3)
  2325.      This variable controls how new groups are treated by nn. It is an integer
  2326.      variable, and the following values can be used. Some of these actions
  2327.      (marked with an *) will only work when keep-unsubscribed is set, since
  2328.      the presence of a group in .newsrc is the only way to recognize it as an
  2329.      old group:
  2330.      0) Ignore groups which are not in .newsrc. This will obviously include
  2331.      new groups.
  2332.      1*) Groups not in .newsrc are considered to be new, and are inserted at
  2333.      the beginning of the .newsrc file.
  2334.      2*) Groups not in .newsrc are considered to be new, and are appended to
  2335.      the end of the .newsrc file.
  2336.      3) New groups are recognized via a time-stamp saved in the file .nn/LAST
  2337.      and in the database, i.e. it is not dependent on the groups currently in
  2338.      .newsrc. The new groups are automatically appended to .newsrc with
  2339.      subscription. Old groups not present in .newsrc will be considered to be
  2340.      unsubscribed.
  2341.      4) As 3, but the user is asked to confirm that the new group should be
  2342.      appended to .newsrc. If rejected, the group will not be appended to
  2343.      .newsrc, and thus be regarded as unsubscribed.
  2344.      5) As 4, except that the information is stored in a format compatible
  2345.      with the rn news reader (.rnlast). This needs to be tested!
  2346.  
  2347. new-style-read-prompt    (boolean, default true)
  2348.      When set, the reading mode prompt line includes the group name and the
  2349.      number of selected articles in the group.
  2350.  
  2351. news-header headers    (string, default not set)
  2352.      The headers string specifies one or more extra header lines (separated by
  2353.      semi-colons `;') which are added to the header of articles posted from nn
  2354.      using the follow and post commands. See mail-header for an example.
  2355.  
  2356. news-record file    (string, default not set)
  2357.      Save file for follow-ups and postings. Same rules and format as the
  2358.      mail-record variable.
  2359.  
  2360. news-script file    (string, default not set)
  2361.      When set, nn will use the specified file instead of the standard aux
  2362.      script when executing the follow and post commands.
  2363.  
  2364. newsrc file        (string, default "~/.newsrc")
  2365.      Specifies the file used by nn to register which groups and articles have
  2366.      been read. The default setting corresponds to the .newsrc file used by
  2367.      other news readers. Notice that nn release 6.4 does allow individual
  2368.      articles to be marked unread, and some articles marked unread, and thus
  2369.      no longer messes up .newsrc for other news readers!
  2370.  
  2371. nntp-cache-dir directory    (string, default "~/.nn")
  2372.      When NNTP is used, nn needs to store articles temporarily on disk. This
  2373.      variable specifies which directory nn will use to hold these files. The
  2374.      default value may be changed during configuration. This variable can only
  2375.      be set in the init file.
  2376.  
  2377. nntp-cache-size size    (integer, default 10, maximum 10)
  2378.      Specifies the number of temporary files in the nntp cache. The default
  2379.      and maximum values may be changed during configuration.
  2380.  
  2381. nntp-debug    (boolean, default false)
  2382.      When set, a trace of the nntp related traffic is displayed in the message
  2383.      line on the screen.
  2384.  
  2385. old [max-articles]    (integer, default not set)
  2386.      When old is set, nn will present (or scan) all (or the last max-articles)
  2387.      unread as well as read articles. While old is set, nn will never mark any
  2388.      unread articles as read.
  2389.  
  2390. orig-to-include-mask N    (integer, default 3)
  2391.      When replying to an article, nn will include some of the header lines
  2392.      which may be used to construct a proper mail address for the poster of
  2393.      the original article. These addresses are placed on Orig-To: lines in the
  2394.      reply header and will automatically be removed before the letter is sent.
  2395.      This variable specifies which headers from the article are included; its
  2396.      value N is the sum of the following values:
  2397.           1: Reply-To:
  2398.           2: From:
  2399.           4: Path:
  2400.  
  2401. overlap lines    (integer, default 2)
  2402.      Specifies the number of overlapping lines from one page to the next when
  2403.      paging through an article in reading mode. The last line from the
  2404.      previous page will be underlined if the terminal has that capability.
  2405.  
  2406. pager shell-command        (string, default $PAGER)
  2407.      This is the pager used by the :admin command (and nnadmin) when it
  2408.      executes certain commands, e.g. grepping in the Log file.
  2409.  
  2410. patch-command shell-command    (string, default "patch -p0")
  2411.      This is the command which is invoked by the :patch command.
  2412.  
  2413. preview-continuation cond    (integer, default 12)
  2414.      This variable determines on what terms the following article should be
  2415.      automatically shown when previewing an article, and the next-article
  2416.      command is used, or continue is used at the end of the article. The
  2417.      following values can be used:
  2418.      0 - never show the next article (return to the menu).
  2419.      1 - always show the next article (use 'q' to return to the menu).
  2420.      2 - show the next article if it has the same subject as the current
  2421.      article, else return to the menu.
  2422.      The value should be the sum of two values: one for the action after using
  2423.      continue on the last page of the article, and one for the action
  2424.      performed when the next-article command is used multiplied by 10.
  2425.  
  2426. preview-mark-read        (boolean, default true)
  2427.      When set, previewing an article will mark the article as read.
  2428.  
  2429. previous-also-read    (boolean, default true)
  2430.      When set, going back to the previously read group with P {previous} will
  2431.      include articles read in the current invocation of nn even if there are
  2432.      still unread articles in the group.
  2433.  
  2434. print-header-lines fields    (string, default "FDGS")
  2435.      Specifies the list of header fields that are output when an article is
  2436.      printed via the :print command and print-header-type is 1 (short header).
  2437.      The fields specification is desctribed in the section on Customized
  2438.      Article Headers below.
  2439.  
  2440. print-header-type N    (integer, default 1)
  2441.      Specifies what kind of header is printed by the :print command,
  2442.      corresponding to the three save-* commands: 0 prints only the article
  2443.      body (no header), 1 prints a short header, and 2 prints the full article
  2444.      header.
  2445.  
  2446. printer shell-command    (string, default is system dep.)
  2447.      This is the default value for the print command. It should include an
  2448.      option which prevents the spooler from echoing a job-id or similar to the
  2449.      terminal to avoid problems with screen handling (e.g. lp -s on System V).
  2450.  
  2451. query-signature        (boolean, default ...)
  2452.      Will cause nn to require confirmation before appending the .signature
  2453.      file to out-going mail or news if the corresponding append-sig-...
  2454.      variable is set.
  2455.  
  2456. quick-count    (boolean, default true)
  2457.      When set, calculating the total number of unread articles at start-up is
  2458.      done by simple subtracting the first unread article number from the total
  2459.      number of articles in each group. This is very fast, and fairly accurate
  2460.      but it may be a bit too large. If not set, each line in .newsrc will be
  2461.      interpreted to count every unread article, thus giving a very accurate
  2462.      number. This variable is also used by nncheck.
  2463.  
  2464. quick-save    (boolean, default false)
  2465.      When set, nn will not prompt for a file name when an article is saved
  2466.      (unless it belongs to a folder). Instead it uses the save file specified
  2467.      for the current group in the init file or the default save file.
  2468.  
  2469. re-layout N        (integer, default 0)
  2470.      Normally on the menu, nn will prefix the subject a number of `>'s
  2471.      corresponding to the number of references on the References: line. The
  2472.      re-layout variable may be set to use a different prefix on the subjects:
  2473.           0: One `>' per reference is shown (default).
  2474.           1: A single `>' is shown if the Subject contains Re:.
  2475.           2: The number of references is shown as `n>'
  2476.           3: A single Re: is shown.
  2477.           4: If any references use layout 0, else layout 1.
  2478.  
  2479. re-layout-read N    (integer, default -1)
  2480.      When the header-lines variable is not set, or contains the "*" field
  2481.      specifier, a line similar to the menu line will be used as the header of
  2482.      the article in reading mode, including the sender's name and the
  2483.      article's subject. When this variable is negative, the subject on this
  2484.      header line will be prefixed according to the re-layout variable.
  2485.      Otherwise, it will define the format of the "Re:" prefix to be used
  2486.      instead of the re-layout used on the menu.
  2487.  
  2488. read-return-next-page    (boolean, default false)
  2489.      When set, the Z {read-return} command will return to the next menu page
  2490.      rather than the current menu page.
  2491.  
  2492. record file    (string, no default)
  2493.      Setting this pseudo variable will set both the mail-record and the
  2494.      news-record variables to the specified pathname.
  2495.  
  2496. repeat        (boolean, default false)
  2497.      When set, nn will not eliminate duplicated subject lines on menus (I
  2498.      cannot imagine why anyone should want that, but....)
  2499.  
  2500. repeat-group-query    (boolean, default false)
  2501.      When set, invoking nn with the -g option will always repeat the query for
  2502.      a group to enter until you quit explicitly. (Same as setting the -r
  2503.      option permanently).
  2504.  
  2505. report-cost        (boolean, default true)
  2506.      This variable is ignored unless nn is running with accounting enabled
  2507.      (see nnacct). When set, nn will report the cost of the current session
  2508.      and the total on exit.
  2509.  
  2510. response-check-pause pause    (integer, default 2)
  2511.      Specifies the number of seconds to wait after posting an article to see
  2512.      whether the action *might* have failed. Some commands run in the
  2513.      background and may thus not have completed during this period, so even
  2514.      when nn says "Article posted", it may still fail (in which case you are
  2515.      informed via mail).
  2516.  
  2517. response-default-answer action    (string, default "send")
  2518.      The default action to be taken when hitting return to the "response
  2519.      action" prompt (abort, edit, send, view, write). If it is unset, no
  2520.      default action is defined.
  2521.  
  2522. retain-seen-status    (boolean, default false)
  2523.      Normally, seen articles will just be unread the next time the group is
  2524.      entered (unless they were marked read by auto-junk-seen). If
  2525.      retain-seen-status is set, the seen attribute on the articles will
  2526.      survive to the next time the group is entered. (This is not recommended
  2527.      because it may result in very large select files).
  2528.  
  2529. retry-on-error times    (integer, default 0)
  2530.      When set, nn will try the specified number of times to open an article
  2531.      before reporting that the article does not exist any more. This may be
  2532.      necessary in some network environments.
  2533.  
  2534. save-counter format    (string, default "%d")
  2535.      This is the printf-format which nn uses to create substitution string for
  2536.      the trailing * in save file names. You can set this to more complex
  2537.      formats if you like, but be sure that it will produce different strings
  2538.      for different numbers. An alternative format which seems to be popular is
  2539.      ".%02d" .
  2540.  
  2541. save-counter-offset N    (integer, default 0)
  2542.      Normally, file names created with the part.* form will substitute the *
  2543.      with successive numbers starting from one. Setting this variable will
  2544.      cause these numbers to start from N+1.
  2545.  
  2546. save-header-lines fields    (string, default "FDNS")
  2547.      Specifies the list of header fields that are saved when an article is
  2548.      saved via the O {save-short} command. The fields specification is
  2549.      desctribed in the section on Customized Article Headers below.
  2550.  
  2551. save-report    (boolean, default true)
  2552.      When set, a message reporting the number of lines written is shown after
  2553.      saving an article. Since messages are shown for a few seconds, this may
  2554.      slow down the saving of many articles (e.g. using the S* command).
  2555.  
  2556. scroll-clear-page        (boolean, default true)
  2557.      Determines whether nn clears the screen before showing each new page of
  2558.      an article.
  2559.  
  2560. scroll-last-lines N        (integer, default 0)
  2561.      Normally, nn will show each new page of an article from the top of the
  2562.      screen (with proper marking of the overlap). When this variable is set to
  2563.      a negative value, nn will scroll the text of the new pages from the
  2564.      bottom of the screen instead. If it is set to a positive value, nn will
  2565.      show pages from the top as usual, but switch to scrolling when there are
  2566.      less than the specified number of lines left in the article.
  2567.  
  2568. select-leave-next        (boolean, default false)
  2569.      When set, you will be asked whether to select articles with the
  2570.      leave-next attribute on entry to a group with left over articles.
  2571.  
  2572. select-on-sender        (boolean, default false)
  2573.      Specifies whether the find (=) command in article selection mode will
  2574.      match on the subject or the sender.
  2575.  
  2576. shading-on code...    (control string, default not set)
  2577.      Specifies the escape code to be sent to the terminal to cause "shading"
  2578.      of the following output to the screen. This is used if the
  2579.      mark-overlap-shading is set, and by the `+' attribute in the header-lines
  2580.      variable.
  2581.  
  2582. shading-off code...    (control string, default not set)
  2583.      Specifies the escape code to be sent to the terminal to turn off the
  2584.      shading defined by shading-on. Shading will typically be done by changing
  2585.      the foreground colour to change, e.g.
  2586.           on term ti924-colour
  2587.           set shading-on ^[ [ 3 2 m
  2588.           set shading-off ^[ [ 3 7 m
  2589.           set mark-overlap-shading
  2590.           unset mark-overlap
  2591.           end
  2592.  
  2593. shell program    (string, default $SHELL)
  2594.      The shell program used to execute shell escapes.
  2595.  
  2596. shell-restrictions    (boolean, default false)
  2597.      When set (in the init file), nn will not allow the user to invoke the
  2598.      shell in any way, including saving on pipes. It also prevents the user
  2599.      from changing certain variables containing commands.
  2600.  
  2601. show-purpose-mode N        (integer, default 1)
  2602.      Normally, nn will show the purpose of a group the first time it is read,
  2603.      provided a purpose is known. Setting this variable, this behaviour can be
  2604.      changed as follows:
  2605.           0: Never show the purpose.
  2606.           1: Show the purpose for new groups only.
  2607.           2: Show the purpose for all groups.
  2608.  
  2609. silent        (boolean, default false)
  2610.      When set, nn wont print the logo or "No News" if there are no unread
  2611.      articles. Only useful to set in the init file or with the -Q option.
  2612.  
  2613. slow-mode        (boolean, default false)
  2614.      When set, nn will cut down on the screen output to give better response
  2615.      time at low speed. Normally, nn will use standout mode (if possible) to
  2616.      mark selected articles on the menu, but when slow-mode is set, nn will
  2617.      just put an asterisk `*' next to the article identifier on selected
  2618.      articles. Also when slow-mode is set nn will avoid redrawing the screen
  2619.      in the following cases: After a goto-group command an empty menu is shown
  2620.      (hit space to make it appear), and after responding to an article, only
  2621.      the prompt line is shown (use ^L to redraw the screen). To avoid
  2622.      redrawing the screen after an extended command, set the delay-redraw
  2623.      variable as well.
  2624.  
  2625. slow-speed speed    (integer, default 1200)
  2626.      If the terminal is running at this baud rate or lower, the on slow (see
  2627.      the section on init files) condition will be true, and the on fast will
  2628.      be false (and vice-versa).
  2629.  
  2630. sort        (boolean, default true)
  2631.      When set, nn will sort articles according to the current sort-mode on
  2632.      entry to a group. Otherwise, articles will be presented in order of
  2633.      arrival.
  2634.  
  2635. sort-mode mode    (integer, default 1)
  2636.      The default sort algorithm used to sort the articles on entry to a news
  2637.      group. It is a numeric value corresponding to one of the sorting methods
  2638.      described in connection with the :sort command:
  2639.           0 - arrival (no sorting)
  2640.           1 - subject (subjects ordered after age of first article)
  2641.           2 - lexical (subjects in lexicographical order)
  2642.           3 - age (articles ordered after posting date only)
  2643.           4 - sender (articles ordered after sender's name)
  2644.  
  2645. spell-checker shell-command    (string, default not set)
  2646.      When set, responses can be checked for spelling mistakes via the (i)spell
  2647.      action. The command to perform the spelling is given the file containing
  2648.      the full article including header as its only argument. If the spell
  2649.      checker can fix spelling mistakes, it must apply the changes directly to
  2650.      this file.
  2651.  
  2652. split        (boolean, default true)
  2653.      When set, digests will automatically and silently be split into
  2654.      sub-articles which are then handled transparently as normal articles.
  2655.      Otherwise, digests are presented as one article (which you can split on
  2656.      demand with the G command).
  2657.  
  2658. stop lines    (integer, default not set)
  2659.      When stop is set, nn will only show the first lines lines of the of each
  2660.      article before prompting you to continue. This is useful on slow
  2661.      terminals and modem lines to be able to see the first few lines of longer
  2662.      articles (and skipping the rest with the n command).
  2663.  
  2664. subject-match-limit length    (integer, default 256)
  2665.      Subjects will be considered identical if their first length characters
  2666.      match. Setting this uncritically to a low value may cause unexpected
  2667.      results!
  2668.  
  2669. subject-match-offset offset    (integer, default 0)
  2670.      When set to a positive number, that many characters at the beginning of
  2671.      the subject will be ignored when comparing subjects for ordering and
  2672.      equality purposes.
  2673.  
  2674. subject-match-parts    (boolean, default false)
  2675.      When set, two subjects will be considered equal if they are identical up
  2676.      to the first (differing) digit. Together with the subject-match-offset
  2677.      variable, this can be used in source groups where the subject often has a
  2678.      format like:
  2679.           vXXXXXX: Name of the package (Part 01/04)
  2680.      Setting subject-match-offset to 8 and subject-match-parts to true will
  2681.      make nn consider all four parts of the package having the same subject
  2682.      (and thus be selectable with `*').
  2683.      Notice that changing the subject-match-... variables manually will not
  2684.      have an immediate effect. To reorder the menu, an explicit :sort command
  2685.      must be performed. These variables are mainly intended to be set using
  2686.      the :local command in on entry macros for source and binary groups (entry
  2687.      macros are evaluated before the menu is collected and sorted).
  2688.  
  2689. suggest-default-save    (boolean, default true)
  2690.      When set, nn will present the default-save-file when prompting for a save
  2691.      file name in a group without a specific save file, or folder-save-file
  2692.      when saving from a folder. When not set, no file name is presented, and
  2693.      to use the default save file, a single + must be specified.
  2694.  
  2695. tidy-newsrc        (boolean, default false)
  2696.      When set, nn will automatically remove lines from .newsrc which represent
  2697.      groups not found in the active file or unsubscribed groups if
  2698.      keep-unsubscribed is not set.
  2699.  
  2700. time        (boolean, default true)
  2701.      When set, nn will show the current time in the prompt line. This is
  2702.      useful on systems without a sysline (1) utility.
  2703.  
  2704. trusted-escape-codes codes    (string, default none)
  2705.      When set to a list of one or more characters, nn will trust and output
  2706.      escape characters in an article if it is followed by one of the
  2707.      characters in the list. For example, to switch to or from kanji mode,
  2708.      control codes like "esc\ $" and "esc\ (\ J" may be present in the text.
  2709.      To allow these codes, use the following command:
  2710.           set trusted-escape-codes ($
  2711.      You can also set it to all to pass all espace codes through to the
  2712.      screen. Notice that nn thinks all characters (including esc) output to
  2713.      the screen as occupy one column.
  2714.  
  2715. unshar-command shell-command    (string, default "/bin/sh")
  2716.      This is the command which is invoked by the unshar command.
  2717.  
  2718. unshar-header-file file    (string, default "Unshar.Headers")
  2719.      The name of the file in which the header and initial text of articles
  2720.      unpacked with the :unshar command is saved. Unless the file name starts
  2721.      with a `/', the file will be created in the same directory as the
  2722.      unpacked files. The information is not saved if this variable is not set.
  2723.      Setting it to "Unshar.Result" will cause the headers and the results from
  2724.      the unpacking process to be merged in a meaningful way (unless
  2725.      mmdf-format is set).
  2726.  
  2727. unsubscribe-mark-read    (boolean, default true)
  2728.      When set, unsubscribing to a group will automatically mark all current
  2729.      articles read; this is recommended to keep the size of .newsrc down.
  2730.      Otherwise, unread articles in the unsubscribe groups are kept in .newsrc.
  2731.      If keep-unsubscribed is false, this variable has no effect.
  2732.  
  2733. update-frequency        (integer, default 1)
  2734.      Specifies how many changes need to be done to the .newsrc or select files
  2735.      before they are written back to disk. The default setting causes .newsrc
  2736.      to be updated every time a group has been read.
  2737.  
  2738. use-path-in-from        (boolean, default false)
  2739.      When mail-format is set, saved articles will be preceded by a specially
  2740.      formatted "From\ " line:
  2741.           From origin date
  2742.      Normally, the origin will be the name of the news group where the article
  2743.      appeared, but if use-path-in-from is set, the contents of the "Path:"
  2744.      header will be used as the origin.
  2745.  
  2746. use-selections        (boolean, default true)
  2747.      When set, nn uses the selections and other article attributes saved last
  2748.      time nn was used. If not set, nn ignores the select file.
  2749.  
  2750. visible-bell    (boolean, default true)
  2751.      When set, nn will flash the screen instead of "ringing the bell" if the
  2752.      visible bell (flash) capability is defined in the termcap/terminfo
  2753.      database.
  2754.  
  2755. window size    (integer, default not set)
  2756.      When set, nn will reserve the last size lines of the menu screen for a
  2757.      preview window. If not set, nn will clear the screen to preview an
  2758.      article if there are less than min-window lines at the bottom of the
  2759.      screen. As a side effect, it can also be used to reduce the size of the
  2760.      menus, which may be useful on slow terminals.
  2761.  
  2762. word-key key    (key, default ^W)
  2763.      The key which erases the last input component or word when nn is
  2764.      prompting for a string, e.g. the last name in a path name.
  2765.  
  2766. wrap-header-margin size    (integer, default 6)
  2767.      When set (non-negative), the customized header fields specified in
  2768.      header-lines will be split across several lines if they don't fit on one
  2769.      line. When size is greater than zero, lines will be split at the first
  2770.      space occurring in the last size columns of the line. If not set (or
  2771.      negative), long header lines will be truncated if they don't fit on a
  2772.      single line.
  2773.  
  2774. From: NN
  2775. Subject: CUSTOMIZED ARTICLE HEADER PRESENTATION
  2776.  
  2777. Normally, nn will just print a (high-lighted) single line header containing
  2778. the author, subject, and date (optional) of the article when it is read.
  2779.  
  2780. By setting the header-lines variable as described below, it is possible to get
  2781. a more informative multi line header with optional high-lighting and
  2782. underlining.
  2783.  
  2784. The header-lines variable is set to a list of header line identifiers, and the
  2785. customized headers will then contain exactly these header lines in the
  2786. specified order.
  2787.  
  2788. The same specifications are also used by the :print and save-short commands
  2789. via the print-header-lines and save-header-lines variables.
  2790.  
  2791. The following header line identifiers are recognized in the header-lines,
  2792. print-header-lines, and save-header-lines variables:
  2793.  
  2794.     A    Approved:
  2795.     a    Spool-File:(path of spool file containing the article)
  2796.     B    Distribution:
  2797.     C    Control:
  2798.     D    Date:
  2799.     d    Date-Received:
  2800.     F    From:
  2801.     f    Sender:
  2802.     G    Newsgroup:(current group)
  2803.     g    Newsgroup:(current group if cross-posted or merged)
  2804.     I    Message-Id:
  2805.     K    Keywords:
  2806.     L    Lines:
  2807.     N    Newsgroups:
  2808.     n    Newsgroups:   (but only if cross posted)
  2809.     O    Organization:
  2810.     P    Path:
  2811.     R    Reply-To:
  2812.     S    Subject:
  2813.     v    Save-File:(the default save file for this article)
  2814.     W    Followup-To:
  2815.     X    References:
  2816.     x    Back-References:
  2817.     Y    Summary:
  2818.  
  2819. The 'G' and 'g' fields will include the local article number if it is known,
  2820. e.g.
  2821.       Newsgroup: news.software.nn/754
  2822.  
  2823. The following special symbols are recognized in the header-lines variable (and
  2824. ignored otherwise):
  2825.  
  2826. Preceding the identifier with an equal sign "=" or an underscore "_" will
  2827. cause the header field contents to be high-lighted or underlined.
  2828.  
  2829. A plus sign "+" will use the shading attribute defined by shading-on and
  2830. shading-off to high-light the field contents. If no shading attribute is
  2831. defined it will underline the field instead.
  2832.  
  2833. Including an asterisk "*" in the list will produce the standard one line
  2834. header at that point.
  2835.  
  2836. Example: The following setting of the header-lines variable will show the
  2837. author (underlined), organization, posting date, and subject (high-lighted)
  2838. when articles are read:
  2839.       set header-lines _FOD=S
  2840.  
  2841. From: NN
  2842. Subject: COMMAND LINE OPTIONS
  2843.  
  2844. Some of the command line options have already been described, but below we
  2845. provide a complete list of the effect of each option by showing the equivalent
  2846. set, unset, or toggle command.
  2847.  
  2848. Besides the options described below, you can set any of nn's variables
  2849. directly on the command line via an argument of the following format:
  2850.       variable=value
  2851. To set or unset a boolean variable, the value can be specified as on or off (t
  2852. and f will also work).
  2853.  
  2854. Notice that the init files are read before the options are parsed (unless you
  2855. use the -I option). Therefore, the options which are related to boolean
  2856. variables set in the init file will toggle the value set there, rather than
  2857. the default value. Consequently, the meaning of the options are also
  2858. user-defined.
  2859.  
  2860. The explanations below describe the effect related to the default setting of
  2861. the variables, with the `reverse' effect in square brackets.
  2862.  
  2863. -aN    {set limit N}
  2864.      Limit the maximum number of articles presented in each group to N. This
  2865.      is useful to get up-to-date quickly if you have not read news for a
  2866.      longer period.
  2867.  
  2868. -a0  Mark all unread articles as read. See the full explanation at the
  2869.      beginning of this manual.
  2870.  
  2871. -B    {toggle backup}
  2872.      Do not [do] backup the rc file.
  2873.  
  2874. -d    {toggle split}
  2875.      Do not [do] split digests into separate articles.
  2876.  
  2877. -f    {toggle fsort}
  2878.      Do not [do] sort folders according to the subject (present the articles
  2879.      in a folder in the sequence in which they were saved).
  2880.  
  2881. -g   Prompt for the name of a news group or folder to be entered
  2882.  
  2883. -i    {toggle case-fold-search}
  2884.      Normally searches with -n and -s are case independent. Using this option,
  2885.      the case becomes significant.
  2886.  
  2887. -I   Do not read the init file. This must be the first option!!
  2888.  
  2889. -Ifile-list
  2890.      Specifies an alternate list of init files to be loaded instead of the
  2891.      standard global and private init files. The list is a comma-separated
  2892.      list of file names. Names which does not contain a `/' are looked for in
  2893.      the ~/.nn directory. An empty element in the list is interpreted as the
  2894.      global init file. The list of init files must not be separated from the
  2895.      -I option by blanks, and it must be the first option. Example: The
  2896.      default behaviour corresponds to using -I,init (first the global file,
  2897.      then the file ~/.nn/init).
  2898.  
  2899. -k    {toggle kill}
  2900.      Do not [do] perform automatic kill and selection of articles.
  2901.  
  2902. -lN    {set stop N}
  2903.      Stop after printing the first N lines of each article. This is useful on
  2904.      slow terminals.
  2905.  
  2906. -L[f]    {set layout f}
  2907.      Select alternative menu layout f (0 to 4). If f is omitted, menu layout 3
  2908.      is selected.
  2909.  
  2910. -m    {no corresponding variable}
  2911.      Merge all articles into one `meta group' instead of showing them one
  2912.      group at a time. When -m is used, no articles will be marked as read.
  2913.  
  2914. -nWORD
  2915.      Collect only articles which contain the string WORD in the sender's name
  2916.      (case is ignored). If WORD starts with a slash `/', the rest of the
  2917.      argument is used as a regular expression instead of a fixed string.
  2918.  
  2919. -N    {no corresponding variable}
  2920.      Disable updating of the rc file. This includes not recording that groups
  2921.      have been read or unsubscribed to (although nn will think so until you
  2922.      quit).
  2923.  
  2924. -q    {toggle sort}
  2925.      Do not [do] sort the articles (q means quick, but it isn't any quicker in
  2926.      practice!)
  2927.  
  2928. -Q    {toggle silent}
  2929.      Quiet mode - don't [do] print the logo or "No News" messages.
  2930.  
  2931. -r    {toggle repeat-group-query}
  2932.      Make -g repeat query for a group to enter.
  2933.  
  2934. -sWORD
  2935.      Collect only articles which contain the string WORD in their subject
  2936.      (case is ignored). If WORD starts with a slash `/', the rest of the
  2937.      argument is used as a regular expression instead of a fixed string.
  2938.  
  2939. -S    {toggle repeat}
  2940.      Do not [do] eliminate duplicated subject lines on menus.
  2941.  
  2942. -T    {toggle time}
  2943.      Do not [do] show the current time in the prompt line.
  2944.  
  2945. -w[N]    {set window N}
  2946.      Reserve N lines of the menu screen for a preview window. If N is omitted,
  2947.      the preview window is set to 5 lines.
  2948.  
  2949. -W    {toggle confirm-messages}
  2950.      [Don't] Wait for confirmation on all messages.
  2951.  
  2952. -x[N]    {set old N}
  2953.      Present (or scan) all (or the last N) unread as well as read articles.
  2954.      This will never mark unread articles as read.
  2955.  
  2956. -X    {no corresponding variable}
  2957.      Read/scan unsubscribed groups also. Most useful when looking for a
  2958.      specific subject in all groups, e.g.
  2959.           nn -mxX -sSubject all
  2960.      
  2961.  
  2962. From: NN
  2963. Subject: MACRO DEFINITIONS
  2964.  
  2965. Practically any combination of commands and key strokes can be defined as a
  2966. macro which can be bound to a single key in menu and/or reading mode.
  2967.  
  2968. The macro definition must specify a sequence of commands and key strokes as if
  2969. they were typed directly from the keyboard. For example, a string specifying a
  2970. file name must follow a save command. This manual does not give a complete
  2971. specification of all the input required by the various commands; it is
  2972. recommended to execute the desired command sequence from the keyboard prior to
  2973. defining the macro to get the exact requirements of each command.
  2974.  
  2975. Although it is possible to define temporary macros interactively using the
  2976. :define command, macro definitions are normally placed in the init file.
  2977. Macros are numbered from 0 to 100, i.e. it is possible to define a total of
  2978. 101 different macros (implicit macros defined with the map command uses
  2979. internal numbers from 101 to 200).
  2980.  
  2981. To define macro number M, the following construction is used (the line breaks
  2982. are mandatory):
  2983.       define M
  2984.       body
  2985.       end
  2986.  
  2987. The body consists of a sequence of tokens separated by white space (blanks or
  2988. newlines). However, certain tokens continue to the end of the current line.
  2989.  
  2990. The following tokens may occur in the macro body:
  2991.  
  2992. Comments
  2993.      Empty lines and text following a # character (preceded by white space) is
  2994.      ignored.
  2995.  
  2996. Command Names
  2997.      Any command name listed in the key mapping section can be included in a
  2998.      macro causing that command to be invoked when the macro is executed.
  2999.  
  3000. Extended Commands
  3001.      All the extended commands which can be executed through the command
  3002.      command (normally bound to the : key) can also be executed in a macro. An
  3003.      extended command starts with a colon (:) and continues to the end of the
  3004.      current line. Example:
  3005.           :show groups total
  3006.  
  3007. Key Strokes
  3008.      A key stroke (which is normally mapped into a command depending on the
  3009.      current mode) is specified as a key name enclosed in single quotes.
  3010.      Examples (A-key, left arrow key, RETURN key):
  3011.           'A' 'left' '^M'
  3012.  
  3013. Shell Commands
  3014.      External commands can be invoked as part of a macro execution. There are
  3015.      two forms of shell command invocations available depending on whether a
  3016.      command may produce output or require user input, or it is guaranteed to
  3017.      complete without input or output to the terminal. The difference is that
  3018.      in the latter case, nn does not prepare the terminal to be used by
  3019.      another program. When the command completes, the screen is not redrawn
  3020.      automatically; you should use the redraw command to do that. The tho
  3021.      forms are:
  3022.           :!echo this command uses the terminal
  3023.           :!!echo this command does not > /tmp/file
  3024.  
  3025. Strings
  3026.      Input to commands prompting for a string, e.g. a file name, can be
  3027.      specified in a macro as a double quoted string. Example (save without
  3028.      prompting for a file name):
  3029.           save-short "+$G"
  3030.  
  3031. Conditionals
  3032.      Conditionals may occur anywhere in a macro; a conditional is evaluated
  3033.      when the macro is executed, and if the condition is false the rest of the
  3034.      current line is ignored. The following conditionals are available:
  3035.           ?menu True in menu mode
  3036.           ?show True in reading mode
  3037.           ?folder True when looking at a folder
  3038.           ?group True when looking at a news group
  3039.           ?yes Query user, true if answer is yes
  3040.           ?no Query user, true if answer is no Example (stop macro execution
  3041.      if user rejects to continue):
  3042.           prompt "continue? " ?no break
  3043.      In addition to these conditionals, it is possible to test the current
  3044.      value of boolean and integer variables using the following form:
  3045.           ?variable=value
  3046.      This conditional will be true (1) if the variable is an integer variable
  3047.      whose current value is the one specified, or (2) if the variable is a
  3048.      boolean variable which is either on or off. Examples:
  3049.           ?layout=3 :set layout 1
  3050.           ?monitor=on break
  3051.           ?sort=off :sort age
  3052.  
  3053. break
  3054.      Terminate macro execution completely. This includes nested macros.
  3055.      Example (stop if looking at a folder):
  3056.           ?folder break
  3057.  
  3058. return
  3059.      Terminate execution of current macro. If the current macro is called from
  3060.      another macro, execution of that macro continues immediately.
  3061.  
  3062. input
  3063.      Query the user for a key stroke or a string, for example a file name.
  3064.      Example (prompt the user for a file name in the usual way):
  3065.           save-short input
  3066.  
  3067. yes  Confirm unconditionally if a command requires confirmation. It is ignored
  3068.      if the command does not require confirmation. Example (confirm creation
  3069.      of new files):
  3070.           save-short "+$G" yes
  3071.  
  3072. no   Terminate execution of current macro if a command requires confirmation;
  3073.      otherwise ignore it. If neither yes nor no is specified when a command
  3074.      requires confirmation, the user must answer the question as usual - if
  3075.      the user confirms the action execution continues normally; otherwise the
  3076.      execution of the current macro is terminated. Example (do not create new
  3077.      files):
  3078.           save-short "+$L/misc" no
  3079.  
  3080. prompt string
  3081.      Print the string in the prompt line (highlighted). The string must be
  3082.      enclosed in double quotes. Example:
  3083.           prompt "Enter recipient name"
  3084.      When the macro terminates, the original prompt shown on entry to the
  3085.      macro will automatically be redrawn. If this is not desirable (e.g. if
  3086.      the macro goes from selection to reading mode), the redrawing of the
  3087.      prompt can be disabled by using a prompt command with an empty string
  3088.      (""). Example:
  3089.           prompt "Enter reading mode?" # old prompt is saved
  3090.           ?no return # and old prompt is restored
  3091.           read-skip # changes the prompt
  3092.           prompt "" # so forget old prompt
  3093.  
  3094. echo string
  3095.      Display the string in the prompt line for a short period. Example:
  3096.           ?show echo "Cannot be used in reading mode" break
  3097.  
  3098. puts string-to-end-of-line
  3099.      The rest of the line is output directly to the terminal without
  3100.      interpretation.
  3101.  
  3102. macro M
  3103.      Invoke macro number M. The maximum macro nesting level is five (also
  3104.      catches macro loops).
  3105.  
  3106. I use the following macro to quickly save all the selected files in a file
  3107. whose name is entered as usual. It also works in reading mode (saving just the
  3108. current article).
  3109.       define 1
  3110.       :unset save-report
  3111.       save-short input yes
  3112.       ?menu '+'
  3113.       :set save-report
  3114.       end
  3115.  
  3116. From: NN
  3117. Subject: KEY MAPPINGS
  3118.  
  3119. The descriptions of the keys and commands provided in this manual reflects the
  3120. default key mappings in nn. However, you can easily change these mappings to
  3121. match your personal demands, and it is also possible to remap keys depending
  3122. on the terminal in use. Permanent remapping of keys must be done through the
  3123. init file, while temporary changes (for the duration of the current invocation
  3124. of nn) can be made with the :map command.
  3125.  
  3126. The binding and mapping of keys are controlled by four tables:
  3127.  
  3128. The multikey definition table
  3129.      This table is used for mapping multicharacter key sequences into single
  3130.      characters. By default the table contains the mappings for the four
  3131.      cursor keys, and there is room for 10 user-defined multikeys. The
  3132.      fourteen multikeys are named: up, down, right, left (the four arrow keys),
  3133.      and #0 through #9 for the user-defined keys.
  3134.      Multikey #i (where i is a digit or an arrow key name) is defined using
  3135.      the following command:
  3136.           map #i key-sequence
  3137.      where the sequence is a list of 7-bit character names (see below)
  3138.      separated by spaces. For example, if the HOME key sends the sequence ESC
  3139.      [ H, you can define multikey #0 to be the home key using the command:
  3140.           map #0 ^[ [ H
  3141.  
  3142. The input key mapping table
  3143.      All characters that are read from the keyboard will be mapped through the
  3144.      input mapping table. Consequently, you can globally remap one key to
  3145.      produce any other key value. By default all keys are mapped into
  3146.      themselves.
  3147.      An entry in the input key mapping table to map input-key into new-key is
  3148.      made with the command
  3149.           map key input-key new-key
  3150.      For example, to make your ESC key function as interrupt you can use the
  3151.      command
  3152.           map key ^[ ^G
  3153.  
  3154. The selection mode key binding table
  3155.      This table defines for each key which command should be invoked when that
  3156.      key is pressed in selection mode, i.e. when the article menu is shown.
  3157.      The command to bind a key to a command in selection mode is:
  3158.           map menu key command
  3159.      For example, to have the HOME key defined as multikey #0 above bound to
  3160.      the select command, the following command is used:
  3161.           map menu #0 select
  3162.      To remap a key to select a specific article on the menu (which the `a'
  3163.      through `z' keys do by default), the command must be specified as
  3164.      `article N' where N is the entry number on the menu counted from zero
  3165.      (i.e. a=0, b=1, ..., z=25, 0=26, ..., 9=35). For example, to map `J' to
  3166.      select article `j', the following command is used:
  3167.           map menu J article 9
  3168.  
  3169. The reading mode key binding table
  3170.      This table defines for each key which command should be invoked when that
  3171.      key is pressed in reading mode, i.e. when the article text is shown. The
  3172.      command to bind a key to a command in reading mode is:
  3173.           map show key command
  3174.  
  3175. In addition to the direct mappings described above, the following variations
  3176. of the map command are available:
  3177.  
  3178. User defined keymaps
  3179.      Additional keymaps can be defined using the command
  3180.           make map newmap
  3181.      This will create a new keymap which can initialized using normal map
  3182.      commands, e.g.
  3183.           map newmap key command
  3184.      To activate a user-defined keymap, it must be bound to a prefix key:
  3185.           map base-map prefix-key prefix newmap
  3186.      When used, the prefix key itself does not activate a command, but instead
  3187.      it require another key to be entered and then execute the command bound
  3188.      to that key in the keymap which is bound to the prefix key.
  3189.           For example, to let the key sequence "^X i" execute macro number 10
  3190.      in both modes, the following commands can be used:
  3191.           make map ctl-x
  3192.           map ctl-x i macro 10
  3193.           map both ^X prefix ctl-x
  3194.  
  3195. Mapping keys in both modes
  3196.      Using the pseudo-keymap `both', it is possible to map a key to a command
  3197.      in both selection and reading mode at once. For example, to map the home
  3198.      key to macro number 5 in both modes, the following command can be used:
  3199.           map both #0 macro 5
  3200.  
  3201. Aliasing
  3202.      A key can also be mapped directly to the command currently bound to
  3203.      another key. Later remapping of the other key will not change the mapping
  3204.      of the `aliased' key. This is done using the following command:
  3205.           map keymap new-key as old-key
  3206.  
  3207. Binding macros to keys
  3208.      A previously defined macro can be bound to a key using the command:
  3209.           map keymap key macro macro-number
  3210.  
  3211. Implicit macro definitions
  3212.      An implicit macro can also be defined directly in connection with the map
  3213.      command:
  3214.           map keymap key (
  3215.           body...
  3216.           )
  3217.  
  3218. Keys and character names are specified using the following notation:
  3219.  
  3220. C    A single printable character represents the key or character itself.
  3221.  
  3222. ^C   This notation represents a control key or character. DEL is written as ^?
  3223.  
  3224. 125, 0175, 0x7D
  3225.      Characters and keys can be specified by their ordinal value in decimal,
  3226.      octal, and hexadecimal notation.
  3227.  
  3228. up, down, right, left
  3229.      These names represent the cursor keys.
  3230.  
  3231. #0  through  #9
  3232.      These symbols represent the ten user-defined multikeys.
  3233.  
  3234. If the variable data-bits is 7, key maps can specify binding of all keys in
  3235. the range 0x00 to 0x7F, and the 8th bit will be stripped in all keyboard
  3236. input. If the variable data-bits is 8, the 8th bit is not cleared, and key
  3237. maps are extended to allow binding of keys in the range 0xA0 to 0xFE
  3238. (corresponding to the national characters defined by the ISO 8859 character
  3239. sets). Binding commands to these keys can be done either by using their
  3240. numeric value, or directly specifying the 8 bit character in the map command,
  3241. e.g.
  3242.       map menu 0xC8 macro 72
  3243.       map key \o'\(aae' %
  3244.  
  3245. To show the current contents of the four tables, the following versions of the
  3246. :map command are available:
  3247.  
  3248. :map Show the current mode's key bindings.
  3249.  
  3250. :map menu
  3251.      Show the selection mode key bindings.
  3252.  
  3253. :map show
  3254.      Show the reading mode key bindings.
  3255.  
  3256. :map #
  3257.      Show the multikey definition table.
  3258.  
  3259. :map key
  3260.      Show the input key mapping table.
  3261.  
  3262. From: NN
  3263. Subject: STANDARD KEY BINDINGS
  3264.  
  3265. Below is a list of all the commands that can be bound to keys, either in
  3266. selection mode, in reading mode, or both. For each command the default command
  3267. key bindings in both modes are shown. If the key is not bound in one of the
  3268. modes, but it can be bound, the corresponding part will just be empty. If the
  3269. command cannot be bound in one of the modes, that mode will contain the word
  3270. nix.
  3271.  
  3272.     Function              Selection mode  Reading mode
  3273.     advance-article       nix             a
  3274.     advance-group         A               A
  3275.     article N             a-z0-9          nix
  3276.     back-article          nix             b
  3277.     back-group            B               B
  3278.     cancel                C               C
  3279.     command               :               :
  3280.     compress              nix             c
  3281.     continue              space           space
  3282.     continue-no-mark      return          nix
  3283.     decode
  3284.     find                  =               /
  3285.     find-next             nix             .
  3286.     follow                F               fF
  3287.     full-digest           nix             H
  3288.     goto-group            G               G
  3289.     goto-menu             nix             = Z
  3290.     help                  ?               ?
  3291.     junk-articles         J               nix
  3292.     kill-select           K               K
  3293.     layout                "               nix
  3294.     leave-article         nix             l
  3295.     leave-next            L               L
  3296.     line+1                ,  down         return
  3297.     line-1                /               nix
  3298.     line=@                nix             g
  3299.     macro M
  3300.     mail                  M               m M
  3301.     message               ^P              ^P
  3302.     next-article          nix             n
  3303.     next-group            N               N
  3304.     next-subject          nix             k
  3305.     nil
  3306.     overview              Y               Y
  3307.     page+1                >               nix
  3308.     page+1/2              nix             d
  3309.     page-1                <               delete  backspace
  3310.     page-1/2              nix             u
  3311.     page=0                nix             h
  3312.     page=1                ^               ^
  3313.     page=$                $               $
  3314.     patch
  3315.     post
  3316.     preview               %               %
  3317.     previous              P               p
  3318.     print                                 P
  3319.     quit                  Q               Q
  3320.     read-return           Z               nix
  3321.     read-skip             X               X
  3322.     redraw                ^L ^R           ^L ^R
  3323.     reply                 R               r R
  3324.     rot13                 nix             D
  3325.     save-body             W               w W
  3326.     save-full             S               s S
  3327.     save-short            O               o O
  3328.     select                .               nix
  3329.     select-auto           +               nix
  3330.     select-invert         @               nix
  3331.     select-range          -               nix
  3332.     select-subject        *               *
  3333.     shell                 !               !
  3334.     skip-lines            nix             tab
  3335.     unselect-all          ~               nix
  3336.     unshar
  3337.     unsub                 U               U
  3338.     version               V               V
  3339.  
  3340. See the descriptions of the default bindings for a description of the
  3341. commands. The pseudo command nil is used to unbind a key.
  3342.  
  3343. From: NN
  3344. Subject: THE INIT FILES
  3345.  
  3346. The init files are used to customize nn's behaviour to your personal taste. Nn
  3347. uses two init files - a system-wide init file located in the library
  3348. directory, and a private init file located in the user's .nn directory. The
  3349. private init file is read after the global init file to allow the user to
  3350. change the default setup.
  3351.  
  3352. The init file is parsed one line at a time. If a line ends with a backslash
  3353. `\', the backslash is ignored, and the following line is appended to the
  3354. current line.
  3355.  
  3356. The init file may contain the following types of commands (and data):
  3357.  
  3358. Comments
  3359.      Empty lines and lines with a # character as the first non-blank character
  3360.      are ignored. Except where # has another meaning defined by the command
  3361.      syntax (e.g. multi-keys are named #n), trailing comments on input lines
  3362.      are ignored.
  3363.  
  3364. Variable settings
  3365.      You can set (or unset) all the variables described earlier to change nn's
  3366.      behaviour permanently. The set and unset commands you can use in the init
  3367.      file have exactly the same format as the :set and :unset commands
  3368.      described earlier (except that the : prefix is omitted.)
  3369.  
  3370. Key mappings
  3371.      You can use all the versions of the map command in the init file.
  3372.  
  3373. Macro Definitions
  3374.      You can define sequences of commands and key strokes using the
  3375.      define...end construction, which can then be bound to single keys with
  3376.      the map command.
  3377.  
  3378. Load terminal specific files
  3379.      You can load a terminal specific file using the
  3380.           load file
  3381.      The character @ in the file will be replaced by the terminal type defined
  3382.      in the TERM environment variable. nn silently ignores the load command if
  3383.      the file does not exist (so you don't have to have a specific init file
  3384.      for terminals which does not require remapping). If the file is not
  3385.      specified by an absolute pathname, it must reside in your ~/.nn
  3386.      directory. Examples:
  3387.           # load local customizations
  3388.           load /usr/lib/nninit
  3389.           # load personal terminal specific customizations
  3390.           load init.@
  3391.  
  3392. Change working directory of nn
  3393.      You can use the cd command to change the working directory whenever you
  3394.      enter nn. Example:
  3395.           # Use folder directory as working directory inside nn
  3396.           cd ~/News
  3397.  
  3398. Command groups
  3399.      The init file can contain groups of commands which are executed under
  3400.      special conditions. The command groups are described in the section on
  3401.      command groups below.
  3402.  
  3403. One or more save-files sections
  3404.      A save-files section is used to assign default save files to specific
  3405.      groups:
  3406.           save-files
  3407.           group-name (pattern) file-name
  3408.           end
  3409.      The group name (patterns) and save file names are specified in the same
  3410.      way as in the presentation sequence (see below). Example:
  3411.           save-files
  3412.           news* +news/$L
  3413.           comp.sources* /u/src/$L/
  3414.           end
  3415.  
  3416. The news group presentation sequence
  3417.      The last part of the init file may specify the sequence in which you want
  3418.      the news groups to be presented. This part starts with the command
  3419.      sequence and continues to the end of the init file.
  3420.  
  3421. Both init files may contain a presentation sequence. In this case, the global
  3422. sequence is appended to the private sequence.
  3423.  
  3424. From: NN
  3425. Subject: COMMAND GROUPS
  3426.  
  3427. Command groups may only occur in the init file, and they provide a way to have
  3428. series of commands executed at certain points during news reading.
  3429.  
  3430. In release 6.4, these possibilities are still rather rudimentary, and a
  3431. mixture of normal init file syntax and macro syntax is used depending on
  3432. whether the command group is only executed on start-up or several times during
  3433. the nn session.
  3434.  
  3435. A command group begins with the word on and ends with the word end. The on
  3436. symbol must followed by one of the following identifiers denoting when the
  3437. group is executed:
  3438.       on ...
  3439.       commands
  3440.       end
  3441. The following command groups may be defined:
  3442.  
  3443. on slow
  3444.      The commands (init file syntax) in the group are executed only if the
  3445.      current terminal output speed is less than or equal to the baud rate set
  3446.      in the slow-speed variable. This can be used to optimize the
  3447.      user-interface for slow terminals by setting suitable variables:
  3448.           on slow
  3449.           set confirm-entry
  3450.           set slow-mode
  3451.           set delay-redraw
  3452.           unset visible-bell
  3453.           set compress
  3454.           unset header-lines
  3455.           set stop 5
  3456.           set window 10
  3457.           end
  3458.  
  3459. on fast
  3460.      Same as on slow except that the commands are only executed when the
  3461.      terminal is running at a speed above the slow-speed value.
  3462.  
  3463. on term term-type...
  3464.      The commands are executed if one of the term-type names is identical to
  3465.      value of the TERM environment variable.
  3466.  
  3467. on host host-name...
  3468.      The commands are executed if the local host's name occur in the host-name
  3469.      list.
  3470.  
  3471. on program program-name...
  3472.      The commands are executed if the current program (nn, nncheck, etc) in
  3473.      the program-name list.
  3474.  
  3475. on entry [ group list ]
  3476.      These commands (macro format!) are executed every time nn enters a news
  3477.      group. If a group list is not specified, the commands are associated with
  3478.      all groups which don't have its own entry macro specified in the group
  3479.      sequence. Otherwise, the entry macro will be associated with the groups
  3480.      in the list. The group list is specified using the meta-notations
  3481.      described in the presentation sequence section.
  3482.      All `:' commands at the beginning of the command group are executed
  3483.      before nn collects the articles in the group, so it is possible to set or
  3484.      unset variables like cross-post and auto-read-mode before any articles
  3485.      are collected and the menu is (not) shown.
  3486.           The non-`:' commands, and `:' commands that follows a command of
  3487.      another type will be executed immediately after the first menu page is
  3488.      presented. The execution of a `:' command can be postponed by using a
  3489.      double `::' as the command prefix.
  3490.           on entry comp.sources* alt.sources
  3491.           :set cross-post on # set before collection
  3492.           :local auto-read-mode on # set before showing menu
  3493.           ::unset cross-post # set after collection
  3494.           end
  3495.  
  3496. on start-up
  3497.      These `:' commands (macro format!) are executed on start-up just before
  3498.      nn enters the first news group. However, postponed commands (i.e. non-`:'
  3499.      commands) will not be executed until the first group is shown (it works
  3500.      like an entry macro).
  3501.  
  3502. From: NN
  3503. Subject: GROUP PRESENTATION SEQUENCE
  3504.  
  3505. News groups are normally presented in the sequence defined in the system-wide
  3506. init file in nn's library directory.
  3507.  
  3508. You can personalize the presentation sequence by specifying an alternative
  3509. sequence in the private init file. The sequence in the private init file is
  3510. used before the global presentation sequence, and need only describe the
  3511. deviations from the default presentation sequence.
  3512.  
  3513. The presentation sequence must start with the word
  3514.       sequence
  3515. followed by a list of the news group names in the order you want them to be
  3516. presented. The group names must be separated by white space. The sequence list
  3517. must be the last part of the init file (the parsing of commands from the init
  3518. file stops when the word sequence is encountered).
  3519.  
  3520. You may use a full group name like "comp.unix.questions", or just the name of
  3521. a main group or subgroup, e.g. "comp" or "comp.unix". However, if "comp"
  3522. precedes "comp.unix.questions" in the list, this subgroup will be placed in
  3523. the normal alphabetic sequence during the collection of all the "comp" groups.
  3524.  
  3525. Groups which are not explicitly mentioned in any of the sequence files will be
  3526. placed after the mentioned groups, unless `!!' is used and it has not been
  3527. disabled (as described below).
  3528.  
  3529. Each group name may be followed by a file or folder name (must start with
  3530. either of `/' `~' or `+') which will specify the default save file for that
  3531. group (and its subgroups). A single `+' following the group name is an
  3532. abbreviation for the last save file name used.
  3533.  
  3534. When an article is saved, the default save name will be used as the initial
  3535. contents of the file name prompt for further editing. It therefore does not
  3536. need to be be a complete file name (unless you use the quick save mode).
  3537.  
  3538. Each group name may also be associated with a so-called entry action. This is
  3539. basically an (unnamed) macro which is invoked on entry to the group (following
  3540. the same rules as the `on entry' command group related to :set and :unset
  3541. commands).
  3542.  
  3543. The entry action begins with a left parenthesis `(' and ends with a right
  3544. parenthesis `)' on an otherwise empty line:
  3545.       comp.sources. +src/$L/ (
  3546.       :set cross-post
  3547.       )
  3548. The last entry action can be repeated by specifying an empty set of
  3549. parenthesis, e.g.
  3550.       comp.unix. +unix ()
  3551. The entry action of a preceding group in the sequence can be associated with
  3552. the current group(s) by specifying the name of the group in the parentheses
  3553. instead of the commands, e.g.
  3554.       comp.unix. +unix (comp.sources.unix)
  3555. A macro can also be associated with the entry action by specifying its number
  3556. in the same way as the group name above, e.g.
  3557.       rec.music. +music (30)
  3558. Notice that it is the current definition of the macro which is associated with
  3559. the group, so if the macro is later redefined with the `:define' command, it
  3560. will not have any effect on the entry action.
  3561.  
  3562. Group names can be specified using the following notations:
  3563.  
  3564. group.name
  3565.      Append the group (if it exists) to the presentation sequence list. If
  3566.      also-subgroups is set (default), all subscribed subgroups of the group
  3567.      will be included as well (if there are any). Examples: "comp",
  3568.      "comp.unix", "comp.unix.questions". If the group does not exits (e.g.
  3569.      "comp"), the subgroups will be included even when also-subgroups is not
  3570.      set, i.e. "comp" is equivalent to "comp.".
  3571.  
  3572. group.name.
  3573.      Append the subgroups of the specified group to the presentation sequence.
  3574.      The group itself (if it exists) is not included. Examples: "comp.",
  3575.      "comp.unix.".
  3576.  
  3577. .group.name
  3578.      Append the groups whose name ends with the specified name to the
  3579.      sequence. Example: ".test".
  3580.  
  3581. group.name*
  3582.      Append the group and its subgroups to the presentation sequence list
  3583.      (even when also-subgroups is not set). Example: "comp.unix*".
  3584.  
  3585. The following meta notation can be used in a sequence file. The group.name can
  3586. be specified using any of the forms described above:
  3587.  
  3588. ! groups
  3589.      Completely ignore the group or groups specified unless they are already
  3590.      in the presentation sequence (i.e. has been explicitly mentioned earlier
  3591.      in the sequence).
  3592.  
  3593. !:code groups
  3594.      Ignore a selection of groups based on the given code letter (see below),
  3595.      unless they are already included in the sequence. Notice that these forms
  3596.      only excludes groups from the presentation sequence, i.e. they do not
  3597.      include the remaining groups at this point; that must be done explicitly
  3598.      elsewhere.
  3599.  
  3600. !:U groups
  3601.      Ignore unsubscribed groups, i.e. if they are neither new, nor present and
  3602.      subscribed in .newsrc. This is useful to ignore a whole hierarchy except
  3603.      for a few groups which are explicitly mentioned in .newsrc and still see
  3604.      new groups as they are created.
  3605.  
  3606. !:X groups
  3607.      Ignore unsubscribed and new groups, i.e. if they are not currently
  3608.      present and subscribed in .newsrc. This is useful to ignore a whole
  3609.      hierarchy except for a few groups which are explicitly mentioned in
  3610.      .newsrc. New groups in the hierarchy are ignored unless `NEW' occurs
  3611.      earlier in the sequence.
  3612.  
  3613. !:O groups
  3614.      Ignore old groups, i.e. unless they are new. This is useful to ignore a
  3615.      whole hierarchy but still see new groups which are created in the
  3616.      hierarchy (it might become interesting some day). Individual groups can
  3617.      still be included in the sequence if they are specified before the `!:O'
  3618.      entry.
  3619.  
  3620. !:N groups
  3621.      Ignore new groups in the hierarchy.
  3622.  
  3623. !!   Stop building the presentation sequence. This eliminates all groups that
  3624.      are not already in the presentation sequence.
  3625.  
  3626. NEW  This is a pseudo group name which matches all new groups; you could place
  3627.      this symbol early in your presentation sequence to see new groups `out of
  3628.      sequence' (to attract your attention to them).
  3629.  
  3630. RC   This is a pseudo group name which matches all groups occurring in the
  3631.      .newsrc file. It will cause the groups in .newsrc to be appended to the
  3632.      presentation sequence in the sequence in which they are listed in
  3633.      .newsrc.
  3634.  
  3635. RC:number
  3636.      Similar to the RC entry, but limited to the first number lines of the
  3637.      .newsrc file. Example: RC:10 (use 10 lines of .newsrc).
  3638.  
  3639. RC:string
  3640.      Similar to the RC entry, but limited to the lines up to (and including)
  3641.      the first line (i.e. group) starting with the given string. For example:
  3642.      RC:alt.sources
  3643.  
  3644. < group.name
  3645.      Place the group (and its subgroups) at the beginning of the presentation
  3646.      sequence. Notice that each `<' entry will place the group(s) at the
  3647.      beginning of the current sequence, i.e. < A < B < C will generate the
  3648.      sequence C B A.
  3649.  
  3650. > group.name
  3651.      Place the group (and its subgroups) after all other groups that are and
  3652.      will be entered into the presentation sequence.
  3653.  
  3654. @    Disable the `!!' command. This can be included in the personal
  3655.      presentation sequence if the global sequence file contains a !! entry
  3656.      (see example 1 below).
  3657.  
  3658. % .... %
  3659.      Starts and ends a region of the sequence where it is possible to include
  3660.      groups which has been eliminated earlier. This may be useful to alter the
  3661.      sequence of some groups, e.g. to place comp.sources.bugs after all other
  3662.      source groups, the following sequence can be used:
  3663.      ! comp.sources.bugs comp.sources* % comp.sources.bugs %
  3664.  
  3665. Example 1: In a company where ordinary users only should read the local news
  3666. groups, and ignore the rest (including new news groups which are otherwise
  3667. always subscribed to initially), can use the following global presentation
  3668. sequence:
  3669.       general
  3670.       follow
  3671.       ! local.test
  3672.       local
  3673.       !!
  3674. The "expert" users in the company must put the @ command somewhere in their
  3675. private sequence to avoid losing news groups which they have not explicitly
  3676. mentioned in their init file.
  3677. Example 2: This is the global sequence for systems with heavy news addicts who
  3678. setup their own sequences anyway.
  3679.       # all must read the general news first
  3680.       < general
  3681.       # test is test, and junk is junk,
  3682.       # so it is placed at the very end
  3683.       > test
  3684.       > .test
  3685.       > junk
  3686.       # this is the standard sequence which everybody may
  3687.       # change to their own liking
  3688.       local # our local groups
  3689.       dk # the Danish groups
  3690.       eunet.general # to present it before eunet.followup
  3691.       eunet # the other European groups
  3692.       comp # the serious groups
  3693.       news # news on news
  3694.       sci # other serious groups
  3695.       rec # not really that important (don't quote me)
  3696.       misc # well, it must be somewhere
  3697.       # the groups that are not listed above goes here
  3698. Notice the use of comments in the sequence where they are allowed at the end
  3699. of non-empty lines as well.
  3700. Example 3: My own presentation sequence (in the init file) simply lists my
  3701. favourite groups and the corresponding default save files:
  3702.       sequence
  3703.       !:U alt* # ignore unsubscribed alt groups
  3704.       news.software.nn +nn
  3705.       comp.sys.ti* +ti/$L
  3706.       NEW # show new groups here
  3707.       news*
  3708.       rec.music.synth +synth/
  3709.       comp.emacs*,gnu.emacs +emacs/misc
  3710.       comp.risks +risks
  3711.       eunet.sources +src/unix/
  3712.       comp.sources* +src/$L/
  3713. The presentation sequence is not used when nn is called with one or more news
  3714. group names on the command line; it is thus possible to read ignored groups
  3715. (on explicit request) wihtout changing the init file. (Of course, you can also
  3716. use the G command to read ignored groups).
  3717.  
  3718. From: NN
  3719. Subject: MERGING NEWS GROUPS
  3720.  
  3721. The third example above contains the following line:
  3722.       comp.emacs*,gnu.emacs +emacs/misc
  3723. This is the syntax used to merge groups. When two or more groups are merged,
  3724. all new articles in these groups are presented together as if they were one
  3725. group. To merge groups, their names must be listed together in the sequence,
  3726. and only separated by a single comma. To merge the groups resulting from a
  3727. single group pattern (e.g. comp.emacs*), the group pattern must be followed by
  3728. a comma and a blank (e.g. comp.emacs*, ...).
  3729.  
  3730. Merged groups are presented as the first group in the "list", and the word
  3731. "MERGED" will be shown after the group name. The Y {overview} command will
  3732. still show merged groups as individual groups, but they will be annotated with
  3733. the symbol `&' on the first of the groups, and a `+' on the rest of the
  3734. groups.
  3735.  
  3736. In the current version, the concept of the current group in connection with
  3737. merged groups is a bit fuzzy. This should only be noticeable with the G
  3738. command, which will take the most recently used group among the merged groups
  3739. as the current group. So things like G = ... may not always work as expected.
  3740.  
  3741. From: NN
  3742. Subject: ENVIRONMENT
  3743.  
  3744. The following environment variables are used by nn:
  3745.  
  3746. EDITOR. The editor invoked when editing replies, follow-ups, and composing
  3747. mail. nn knows about the following editors: vi, ded, GNU emacs, and
  3748. micro-emacs, and will try to position the cursor on the first line following
  3749. the header, i.e. after the blank line which must not be deleted! If an article
  3750. has been included, the cursor is placed on the first line of the included text
  3751. (to allow you to delete sections easily).
  3752.  
  3753. LOGNAME. This is taken as the login name of the current user. It is used by nn
  3754. to return failed mail. If it is not defined, nn will use the value of USER, or
  3755. if that is not defined either, nn will use the call `who am i' to get this
  3756. information. If all attempts fail, the failed mail is dropped in the bit
  3757. bucket.
  3758.  
  3759. PAGER. This is used as the initial value of the pager variable.
  3760.  
  3761. SHELL. This is the shell which is spawned if the system cannot suspend nn, and
  3762. it will be used to execute the shell escapes.
  3763.  
  3764. TERM. The terminal type.
  3765.  
  3766. From: NN
  3767. Subject: FILES
  3768.  
  3769. ~/.newsrc             The record of read articles.
  3770. ~/.nn/select          The record of selected and seen articles.
  3771. ~/.nn/init            Personal configuration and presentation sequence.
  3772. ~/.nn/kill            The automatic kills and selections.
  3773. ~/.nn/KILL.COMP       The compiled kill file.
  3774. ~/.nn/LAST            The time stamp of the last news group we have seen.
  3775. ~/.nn/.param          Parameter file for the aux script
  3776. $lib/init             System-wide setup and presentation sequence.
  3777. $lib/aux              The response edit and send script.
  3778. $lib/routes           Mapping rules for mail addresses (on non-domain systems).
  3779. $db/*                 The news data base.
  3780. /etc/termcap          Terminal data base [BSD].
  3781. /usr/lib/terminfo/*   Terminal data base [SysV].
  3782. /usr/lib/nntp-server  Name of remote nntp server.
  3783. The name $lib and $db are the directories used for the auxiliary files and the
  3784. news data base respectively. Their name and location is defined at compile
  3785. time. Common choices are /usr/local/lib/nn or /usr/lib/news/nn for $lib and
  3786. /usr/spool/nn or /usr/spool/news/.nn for $db.
  3787.  
  3788. From: NN
  3789. Subject: SEE ALSO
  3790.  
  3791. Other netnews documentation.
  3792. nncheck(1), nngoback(1), nngrab(1), nngrep(1), nnpost(1), nntidy(1)
  3793. nnadmin(1M), nnusage(1M), nnmaster(8), nnspew(8)
  3794.  
  3795. From: NN
  3796. Subject: AUTHOR
  3797.  
  3798. Kim F. Storm, Texas Instruments A/S, Denmark
  3799. E-mail: storm@texas.dk (but see the addresses below)
  3800.  
  3801. The NNTP support was designed and implemented by Ren\o'\(aae' Seindal,
  3802. Institute of Datalogy, University of Copenhagen, Denmark.
  3803.  
  3804. Bugs and fixes, suggestions, ideas, critique, etc. can be sent to the
  3805. following address:
  3806.       nn-bugs@dkuug.dk
  3807.  
  3808. The news.software.nn group is used for discussion on all subjects related to
  3809. the nn news reader. This includes, but is not limited to, questions, answers,
  3810. ideas, hints, information from the development group, patches, etc.
  3811.  
  3812. From: NNACCT
  3813. Subject: NAME
  3814.  
  3815. nnacct - news accounting and access authorization (nn)
  3816.  
  3817. From: NNACCT
  3818. Subject: SYNOPSIS
  3819.  
  3820. nnacct -r [ -f file ] [ -a ] [ user ]...
  3821. nnacct [ -ppolicy ] [ -qquota ] user...
  3822. nnacct -ZERO
  3823.  
  3824. From: NNACCT
  3825. Subject: DESCRIPTION
  3826.  
  3827. The nnacct command provides an optional accounting and access authorization
  3828. for news reading via the nn news reader.
  3829.  
  3830. The first form (-r) is used to print accounting reports. If a file is
  3831. specified data from a saved accounting file; otherwise the data is read from
  3832. the current accounting file.
  3833.  
  3834. If -a is specified, the report will contain accounting data for all users.
  3835. Otherwise, if one or more users are specified, the data for these users will
  3836. be printed. If neiter is specified, only the accounting data for the current
  3837. user is printed.
  3838.       Only the super-user can generate reports for other users than the caller.
  3839.  
  3840. The second form (-p and/or -q) assigns the specified access policy and/or
  3841. quota to the specified users. If a given user is not already known in the
  3842. accounting file, a new entry with the specified policy and quota is created
  3843. (default values are used if both are not specified).
  3844.  
  3845. The third form (-ZERO) will clear the usage counts for all users. Individual
  3846. usage counts cannot be cleared. The original accounting file is saved with a
  3847. .old suffix.
  3848.  
  3849. The following policies are currently implemented:
  3850.  
  3851. 0    No access. The user is not allowed to read news at all.
  3852.  
  3853. 1    Privileged user. The user can read news at all times and no accounting
  3854.      information is saved. This is obviously the policy for system
  3855.      administrators :-)
  3856.  
  3857. 2    Full time access. The user can access news at all times.
  3858.  
  3859. 3    Off-hours access. The user can only access news at off hours, i.e. in the
  3860.      morning, in the evening, on week-ends, and on holidays (not complete -
  3861.      check the source :-)
  3862.  
  3863. The quota specifies a number of hours which the user is allowed to read news.
  3864. When this quota is used up, access will be blocked. A quota of zero gives
  3865. unlimited access.
  3866.  
  3867. New users will get the default policy and quota defined in account.c. If this
  3868. allows new users to read news at only specific times, this form can be used to
  3869. permit individual users to read news at all times, or it can be used to
  3870. prevent them from reading news at all. If the default policy does not allow
  3871. new users to read news, this form must be used to authorize them to read news.
  3872.  
  3873. From: NNACCT
  3874. Subject: HOW IT WORKS
  3875.  
  3876. If authorization is enabled, the nn news reader will call nnacct on start-up
  3877. to check whether the policy and quota defined for the current user allows him
  3878. to read news at this time (or at all).
  3879.  
  3880. If accounting is enabled, the nn news reader will call nnacct on exit to
  3881. register the time spent on news reading. If account logging is also defined
  3882. (see account.c), an line is also added to the accounting log file.
  3883.  
  3884. When accounting is defined, the user can use the :cost command to get the
  3885. current accounting data, and if the variable report-cost is set, nn will print
  3886. accounting information on exit.
  3887.  
  3888. From: NNACCT
  3889. Subject: CONTIGURATION AND NEW POLICIES
  3890.  
  3891. The use of nnacct is enabled via the ACCOUNTING and AUTHORIZE symbols in nn's
  3892. configuration file. Further configuration of cost calculations, logging,
  3893. default policy, default quotas, etc. is done directly in the source file
  3894. account.c. New access policies can also be defined in this file. This allows
  3895. you to change the policies or prices without having to recompile the whole
  3896. package since only nnacct is modified.
  3897.  
  3898. From: NNACCT
  3899. Subject: PRIVILEGED USERS
  3900.  
  3901. Normally, only root is allowed to change user policy or quota, list all user's
  3902. accounting data etc. This privilege can be shared with other users by listing
  3903. their login name in the file $CLIENT/admins. There should be exactly one login
  3904. name per line, and no blanks are allowed.
  3905.  
  3906. From: NNACCT
  3907. Subject: FILES
  3908.  
  3909. $db/acct        accounting data (accumulated per user)
  3910. $db/acctlog     accounting log (grows indefinitely)
  3911. $lib/admins     login names of privileged nnacct users.
  3912.  
  3913.  
  3914. From: NNACCT
  3915. Subject: SEE ALSO
  3916.  
  3917. nn(1), nnusage(1)
  3918.  
  3919. From: NNACCT
  3920. Subject: BUGS
  3921.  
  3922. There should be some tools to mess around with the accounting files, e.g. to
  3923. make summaries, clear usage counters, etc.
  3924.  
  3925. From: NNACCT
  3926. Subject: AUTHOR
  3927.  
  3928. Kim F. Storm, Texas Instruments A/S, Denmark
  3929. E-mail: storm@texas.dk
  3930.  
  3931. From: NNADMIN
  3932. Subject: NAME
  3933.  
  3934. nnadmin - nn database administration
  3935.  
  3936. From: NNADMIN
  3937. Subject: SYNOPSIS
  3938.  
  3939. nnadmin [ commands ]
  3940.  
  3941. From: NNADMIN
  3942. Subject: DESCRIPTION
  3943.  
  3944. nnadmin is a control program for the nnmaster(1M) daemon which is responsible
  3945. for building and maintaining the database used by the nn(1) news reader.
  3946.  
  3947. nnadmin allows you to display extracts from the log file, display the "raw"
  3948. contents of the database, make consistency checks on the database, instruct
  3949. the running nnmaster to expire one or more groups, alter the options of the
  3950. running nnmaster, and much more.
  3951.  
  3952. nnadmin runs in two modes: interactive and non-interactive.
  3953.  
  3954. In interactive mode, simple one line menus are used to show the available
  3955. operations which are then selected by typing the letter associated with the
  3956. command (normally the first letter in the command name).
  3957.  
  3958. In non-interactive mode, the commands argument will be used as a series of
  3959. key-strokes which are interpreted exactly as if they were typed in from the
  3960. keyboard in interactive mode. For example, to stop the nnmaster, the following
  3961. invokation of nnadmin can be used:
  3962.       nnadmin MK
  3963. which will select the (M)aster submenu from the main menu, and then the (K)ill
  3964. entry from the submenu.
  3965.  
  3966. In non-interactive mode, the menus are not displayed and the commands are not
  3967. echoed! nnadmin will exit when there are no more key-strokes to be read from
  3968. the commands argument. It is not possible to specify a group name in the
  3969. commands argument, so the functionalities of nnadmin that relates to specific
  3970. groups are only available in interactive mode.
  3971.  
  3972. Some "dangerous" commands will require that you confirm them by following them
  3973. by "Y" on the command line. The most noteable are IY (initialize database) and
  3974. EY (expire all groups). These commands will be marked with a [Y] following the
  3975. command name.
  3976.  
  3977. You can also invoke an interactive nnadmin using the :admin command in nn.
  3978.  
  3979. From: NNADMIN
  3980. Subject: SHELL ESCAPES
  3981.  
  3982. At all prompts you can hit `!' to spawn a subshell.
  3983.  
  3984. The working directory of the subshell will be changed to the database
  3985. directory when invoked from the MASTER or DUMP menus, and it will changed to
  3986. the group's spool directory (if it exists) when invoked from the GROUP menu.
  3987.  
  3988. From: NNADMIN
  3989. Subject: MAIN MENU
  3990.  
  3991. From the main menu (identified by the ADMIN prompt) you can select the
  3992. following operations:
  3993.  
  3994. C)onf
  3995.      Show current configuration parameters such as directories, files,
  3996.      programs, network usage, etc.
  3997.  
  3998. E)xpire [Y]
  3999.      Send a request to the nnmaster daemon to schedule (and run) expire for
  4000.      all groups in the database.
  4001.  
  4002. G)roups
  4003.      Enter the GROUP submenu.
  4004.  
  4005. I)nit [Y]
  4006.      Send a request to the nnmaster daemon to recollect all groups in the
  4007.      database.
  4008.  
  4009. L)og
  4010.      Enter the LOG submenu.
  4011.  
  4012. M)aster
  4013.      Enter the MASTER submenu.
  4014.  
  4015. Q)uit
  4016.      Quit nnadmin.
  4017.  
  4018. S)tat
  4019.      Print general statistics about the database. See the section on Database
  4020.      Statistics below.
  4021.  
  4022. U)pdate
  4023.      Update the incore copy of the database master index.
  4024.  
  4025. V)alidate
  4026.      Make a thorough consistency check on the database. If inconsistencies are
  4027.      found in a group, you will be asked whether a request should be sent to
  4028.      the nnmaster daemon to recollect the group (in non-interactive mode,
  4029.      requests will be sent automatically for all corrupted groups).
  4030.  
  4031. W)akeup
  4032.      Send a wakeup signal to the nnmaster daemon to have it receive messages
  4033.      sent to it, perform the required actions, and then collect articles as
  4034.      necessary.
  4035.  
  4036. Z (silent validation)
  4037.      This operation is identical to the Validate operation, expect that no
  4038.      output is produced during the consistency check; this operation is used
  4039.      by the nnmaster to execute the -C option.
  4040.  
  4041. From: NNADMIN
  4042. Subject: THE MASTER MENU
  4043.  
  4044. The master menu (identified by the MASTER prompt) provides access to overall
  4045. database information, and to send control messages to the nnmaster daemon.
  4046.  
  4047. D)ump
  4048.      Enter the DUMP submenu.
  4049.  
  4050. F)iles
  4051.      Print a listing (using ls(1)) of all the data and index files in the
  4052.      database.
  4053.  
  4054. G)roup
  4055.      Print the master index entry for a single group identified by its
  4056.      internal group number.
  4057.  
  4058. K)ill
  4059.      Stop the nnmaster when it has finished its current task.
  4060.  
  4061. O)ptions
  4062.      Change the runtime options of the running nnmaster daemon. Currently,
  4063.      only the value of the -r and -e options can be modified.
  4064.  
  4065. S)tat
  4066.      Print general statistics about the database. See the section on Database
  4067.      Statistics below.
  4068.  
  4069. T)race
  4070.      Turn the trace option -t on or off in the running nnmaster.
  4071.  
  4072. From: NNADMIN
  4073. Subject: THE DUMP MENU
  4074.  
  4075. The dump menu (identified by the DUMP prompt) allows you to print the master
  4076. index entry for various selections of groups in the database.
  4077.  
  4078. A)ll
  4079.      Print all groups in the database.
  4080.  
  4081. E)mpty
  4082.      Print the empty groups in the database.
  4083.  
  4084. H)oles
  4085.      Print the groups where the `min' field in the active file is not the
  4086.      first article saved in the database (because it doesn't exist or because
  4087.      it is ignored for some other reason, e.g. bad or old).
  4088.  
  4089. I)gnored
  4090.      Print groups which are ignored, either in the GROUPS file or because of
  4091.      some other condition (mainly no spool directory).
  4092.  
  4093. N)on-empty
  4094.      Print the non-empty groups in the database.
  4095.  
  4096. V)alid
  4097.      Print the groups which are present in the active file.
  4098.  
  4099. in(W)alid
  4100.      Print the groups in the database which are not present in the active
  4101.      file.
  4102.  
  4103. From: NNADMIN
  4104. Subject: THE LOG MENU
  4105.  
  4106. The log menu (identified by the LOG prompt) enables you the extract specific
  4107. entries from the log file, and to truncate the log file.
  4108.  
  4109. The entries in the log file share the following format:
  4110.       <class>: <date> <time> (<user>): <message>
  4111. where <class> identifies the message class, the <date> and <time> specify when
  4112. the entry was made, the <user> specifies who created the entry (the letter "M"
  4113. denote the nnmaster), and the <message> is the text of the entry.
  4114.  
  4115. To extract the log file entries of a specific class, simply enter the letter
  4116. identifying the class:
  4117.  
  4118. A - admin to master communication
  4119.      This class of messages are related to the sending of messages from an
  4120.      nnadmin program to the nnmaster daemon.
  4121.  
  4122. B - bad articles
  4123.      Reports about bad articles which have been ignored or removed (controlled
  4124.      by the -b and -B options to nnmaster).
  4125.  
  4126. C - collection statistics
  4127.      Statistics about collection of new articles. The message has the format:
  4128.           Collect: nnn art, ppp gr, ttt s
  4129.      meaning that nnn articles in ppp groups were collected in ttt seconds
  4130.      (real time).
  4131.  
  4132. E - fatal errors
  4133.      Fatal errors encountered during operation. These errors require manual
  4134.      intervention to be fixed (some of the fatal errors occur if thing that
  4135.      "cannot happen" happens anyway, and may indicate a bug in the software).
  4136.  
  4137. M - nnmaster messages.
  4138.      Master start/stop messages.
  4139.  
  4140. N - NNTP related messages
  4141.      Various messages related to the NNTP part of the nnmaster, mostly about
  4142.      lost connections and failed attempts to connect to the NNTP server. These
  4143.      messages should only appear if you use NNTP, and your NNTP server is down
  4144.      for some reason.
  4145.  
  4146. O - old articles
  4147.      Reports related to ignoring (and removing) old articles when building the
  4148.      database (controlled by the -O and -B options to nnmaster).
  4149.  
  4150. R - reports
  4151.      Non-fatal error which enables the nnmaster to continue operation, but may
  4152.      prevent a user to run nn (file access problems). Reported problems should
  4153.      be checked. The most common report message will probably be
  4154.           some.group: no directory
  4155.      which indicates that the spool directory for that group has disappeared
  4156.      (most likely because it has been rmgroup'ed).
  4157.  
  4158. T - trace output
  4159.      Messages produced as a result of using the -t option on the nnmaster.
  4160.      This is primarily for debugging purposes.
  4161.  
  4162. U - usage statistics
  4163.      If nn is compiled with the STATISTICS option enabled, an entry will be
  4164.      made in the log file every time a user has spent more than five minutes
  4165.      on news reading. The message will have the following format:
  4166.           USAGE hours.minutes
  4167.      Since it is possible to suspend nn, or leave the terminal while nn is
  4168.      active, nn tries to be intelligent when it calculates the usage time so
  4169.      it will reflect the actual time spent on news reading. The usage
  4170.      statistics can be summarized using the nnusage(1M) program.
  4171.  
  4172. V - validation errors
  4173.      When inconsistencies are detected in the database during validation, an
  4174.      entry for each corrupted group will be entered in the log file.
  4175.  
  4176. X - expire statistics
  4177.      Messages similar to the Collect statistics reporting the result of
  4178.      running expire on the database. Reports related to ignoring, removing,
  4179.      renumbering, and reactivation of groups are also given class X.
  4180.  
  4181. To extract a specific entry class, grep(1) is used, so it may take a while on a
  4182. large log file.
  4183.  
  4184. There are also a few special operations on the log file:
  4185.  
  4186. G)roup
  4187.      Extract the entries which refers to a specified group.
  4188.  
  4189. (1-9) tail
  4190.      Invoke tail(1) to extract the last 10-90 entries in the log file.
  4191.  
  4192. space
  4193.      Equivalent to 1 (list last 10 lines of log).
  4194.  
  4195. (.) all
  4196.      Display the complete log file.
  4197.  
  4198. (@) clean [Y]
  4199.      Move the Log file to Log.old, and create a new empty Log file. If you
  4200.      want to clean out the old log file as well, simply repeat the clean
  4201.      operation (this will result in an empty Log.old file.)
  4202.  
  4203. From: NNADMIN
  4204. Subject: THE GROUP MENU
  4205.  
  4206. When you enter the group menu (identified by the GROUP prompt), nnadmin will
  4207. prompt you for the name of a news group, which you can enter with the usual
  4208. completion feature described in the nn(1) manual. You can then perform the
  4209. following operations on the specified group:
  4210.  
  4211. C)lear_flag
  4212.      Clear a group specific flag. See the section on group flags below.
  4213.  
  4214. D)ata
  4215.      Dump the contents of the data file containing the extracted article
  4216.      headers for the group.
  4217.  
  4218. E)xpire
  4219.      Request the nnmaster to run expire on the group.
  4220.  
  4221. F)iles
  4222.      List the files (using ls(1)) containing the index and data for the group.
  4223.  
  4224. G)roup
  4225.      Switch to another group.
  4226.  
  4227. H)eader
  4228.      Dump the master index entry for the group.
  4229.  
  4230. R)ecollect
  4231.      Request the nnmaster to recollect all articles in the group.
  4232.  
  4233. S)et_flag
  4234.      Set a group specific flag. See the section on group flags below.
  4235.  
  4236. V)alidate
  4237.      Perform validation on the group's database information.
  4238.  
  4239. Z)ap [Y]
  4240.      Remove group from news system - this will be done by running the rmgroup
  4241.      program which must reside in the NEWS_LIB directory. Of course, this
  4242.      should be done with great caution.
  4243.  
  4244. From: NNADMIN
  4245. Subject: INDIVIDUAL GROUP FLAGS
  4246.  
  4247. You can set and clear the following flags for individual groups to control the
  4248. future behaviour of nnmaster on that group.
  4249.  
  4250. Notice that these flags will be reset to their default value if you
  4251. reinitialize the database using nnmaster -I. To change these flags
  4252. permanently, they should be set or cleared in the GROUPS file.
  4253.  
  4254. A)lways_digest
  4255.      Normally, nnmaster will only attempt to split digests into individual
  4256.      articles if it can easily recognize an article as a digest. This requires
  4257.      that the word "digest" appears somewhere in the subject line, and that
  4258.      one of the first few lines in the body of the article loosely matches the
  4259.      subject. A few news groups frequently receives digests which break one or
  4260.      both of these requirements. To have nnmaster split these digests into
  4261.      individual articles anyway, you can turn on the "always digest" flag on
  4262.      these news groups. This will instruct nnmaster to treat all articles in
  4263.      the group as digests (naturally, articles which are then found not to
  4264.      contain other articles are still treated as normal articles.)
  4265.  
  4266. C)ontrol
  4267.      This is a special flag for the control group. It indicates that the
  4268.      "Newsgroups:" field in the article header cannot be trusted (it does not
  4269.      specify the groups to which the article has been posted.)
  4270.  
  4271. D)irectory missing
  4272.      This flag indicates that the spool directory for the news group cannot be
  4273.      found (the group has probably been removed with rmgroup(1M)). It is set
  4274.      automatically be the nnmaster if it cannot access the directory. When the
  4275.      flag is set, nnmaster completely ignores the group, so it can be used to
  4276.      disable news collection in specific groups. If you recreate the group or
  4277.      the directory manually, you must also clear this flag to have the
  4278.      nnmaster recognize the group again.
  4279.  
  4280. M)oderated
  4281.      Indicates that the group is moderated. This flag is normally initialized
  4282.      automatically from the active file, and it should not be changed lightly.
  4283.  
  4284. N)ever_digest
  4285.      This is the opposite of the "always digest" flag; when set, the nnmaster
  4286.      will never attempt to split any articles in that group into subarticles.
  4287.  
  4288. From: NNADMIN
  4289. Subject: DATABASE STATISTICS DISPLAY
  4290.  
  4291. When you select the (S)tat operation in the main or master menus, you will get
  4292. some general statistics about the database:
  4293.  
  4294. initialized
  4295.      The time when the database was last rebuild using nnmaster -I.
  4296.  
  4297. last_scan, last_size
  4298.      The time stamp on the active file and its size the last time the nnmaster
  4299.      read it.
  4300.  
  4301. no of groups
  4302.      The total number of groups in the database.
  4303.  
  4304. Articles
  4305.      The total number of articles in all groups. This is not an exact number,
  4306.      because it will count split digests as a single article (making the
  4307.      number too small), and it may count some articles that have been expired
  4308.      (making the number too large).
  4309.  
  4310. Disk usage
  4311.      The total number of (1 kbyte) disk blocks occupied by the database.
  4312.  
  4313. From: NNADMIN
  4314. Subject: MASTER INDEX ENTRIES
  4315.  
  4316. The master index entries displayed when you select the (H)eader operation in
  4317. the master and group menus contain the following information:
  4318.  
  4319. group_name  group_number
  4320.      The first line of the display will show the name of the group and the
  4321.      internal group number which is used to identify the group in the
  4322.      database.
  4323.  
  4324. first/last art
  4325.      This is the numbers of the first and last article that are currently
  4326.      stored in the database.
  4327.  
  4328. active info
  4329.      This is the numbers of the first and last article in the news system as
  4330.      read from the active file. They will normally match the numbers above,
  4331.      but they may differ while the nnmaster is working on the group (or it has
  4332.      not yet collected all the articles in the group).
  4333.  
  4334. Offsets: index->..., data->...
  4335.      These values show the starting position for the next write operation on
  4336.      the index and data files. They are primarily used for consistency
  4337.      checking and recovery after a system crash, but after an "expire by
  4338.      rewrite" operation (expire method 2) which is performed "in-situ", the
  4339.      data and index files may physically be longer than the actual data stored
  4340.      in them.
  4341.  
  4342. Flags:
  4343.      This shows the current flags set for this group. If no flags are set, the
  4344.      field is omitted from the display. One extra flag which was not explained
  4345.      above is the BLOCKED flag; it is a temporary locking flag set on a group
  4346.      by the nnmaster while it is updating the database files for that group to
  4347.      prevent nn clients to access that group.
  4348.  
  4349. From: NNADMIN
  4350. Subject: RAW DATABASE DISPLAY
  4351.  
  4352. When you select the (D)ata operation on the group menu, you will get a
  4353. combined display of the raw data and index files for that group. The index
  4354. file contains a single 32 bit value for each existing article number. This
  4355. value is an offset into the data file pointing to the header for the
  4356. corresponding article.
  4357.  
  4358. When nn want to access the article from number N to the last article, it looks
  4359. up the offset for article number N in the index file, and uses this as the
  4360. starting point for reading article header information in the data file. It
  4361. then simply reads to the end of the data file in which the article headers for
  4362. articles number N+1, N+2, and so on follows immediately after the header for
  4363. article number N.
  4364.  
  4365. The article header information is presented in a very terse form; each of the
  4366. output lines are described below for reference purposes:
  4367.  
  4368. offset = xxxx    , article # = nnnnn   (type)
  4369.      This shows the offset into the data file and the article number. The
  4370.      offset is stored in the index file for quick access. If no type is
  4371.      printed it is a normal article. Other types are: "digest header" and
  4372.      "digest sub-article".
  4373.  
  4374. xpost(count):  nnn, nnn, nnn, ...
  4375.      Cross-postings to other groups are encoded as a list of internal group
  4376.      numbers.
  4377.  
  4378. ts=nn hp=nn fp=nn lp=nn ref=nn[+Re] lines=nn
  4379.      These values are used by nn to sort, present, and access an article:
  4380.      ts is the time stamp on the article; it is a simple encoding of the
  4381.      posting date and time found in the Date: field.
  4382.      hp, fp, and lp are offsets into the file containing the article text: the
  4383.      header position, first text position, and last text position. The first
  4384.      will be zero for normal articles, but not for articles in a split digest.
  4385.      The last will be equal to the length of the file for normal articles, but
  4386.      not inside digests.
  4387.      ref is the number of references on the Reference: line. If "+Re" follows
  4388.      the number, the subject line contained a "Re:" prefix which has been
  4389.      removed.
  4390.  
  4391. Sender(length): name
  4392.      The name of the sender in "ready to print" format, i.e. reduced to 16
  4393.      characters as explained in the nn manual.
  4394.  
  4395. Subj(length): subject
  4396.      This is the full subject line from the article header (except for Re:
  4397.      prefixes in various formats).
  4398.  
  4399. From: NNADMIN
  4400. Subject: FILES
  4401.  
  4402. The $db, $lib, and $news used below are synonyms for the DB_DIRECTORY,
  4403. LIB_DIRECTORY, and the news system's lib directories respectively.
  4404. $db/MASTER      Database master index
  4405. $db/GROUPS      News group names in MASTER file order
  4406. $db/DATA/nnn.x  Index file for group number nnn
  4407. $db/DATA/nnn.d  Data file for group number nnn
  4408. $master/GATE    Message channel from nnadmin to nnmaster
  4409. $master/MPID    The process id of the nnmaster daemon.
  4410. $Log            The log file (truncate it regularly!)
  4411.  
  4412. The MASTER file contains a record for each news group, occurring in the same
  4413. sequence as the group names in the GROUPS file. The sequence also defines the
  4414. group numbers used to identify the files in the database and in a few other
  4415. places.
  4416.  
  4417. The GATE file will be created by nnadmin when needed, and removed by nnmaster
  4418. when it has read it. Therefore, to send a message to the nnmaster requires
  4419. that you are allowed to write in the $master directory.
  4420.  
  4421. From: NNADMIN
  4422. Subject: SEE ALSO
  4423.  
  4424. nn(1), nncheck(1), nngrep(1), nntidy(1)
  4425. nnquery(1M), nnusage(1M), nnmaster(8)
  4426.  
  4427. From: NNADMIN
  4428. Subject: WARNINGS
  4429.  
  4430. The GATE file is created with the owner and modes of the user that runs
  4431. nnadmin which may cause problems if the owner of the nnmaster process
  4432. (normally "news") is not allowed to read the created GATE file (a "umask" of
  4433. 022 is ok.) Unless you allow ordinary users to create files in the LIB
  4434. directory where the GATE file resides, only the owner of the directory
  4435. (normally "news") and "root" can use nnadmin to send messages to the nnmaster.
  4436. However, to send a wakeup signal to the master, anybody can run
  4437.       nnmaster -w
  4438.  
  4439. From: NNADMIN
  4440. Subject: BUGS
  4441.  
  4442. The user interface is completely out of line with the rest of the nn family,
  4443. and the way to run nnadmin in the non-interactive mode is a bit bizarre. This
  4444. is not likely to change, because I believe there are more important things to
  4445. do!
  4446.  
  4447. From: NNADMIN
  4448. Subject: AUTHOR
  4449.  
  4450. Kim F. Storm, Texas Instruments A/S, Denmark
  4451. E-mail: storm@texas.dk
  4452.  
  4453. From: NNCHECK
  4454. Subject: NAME
  4455.  
  4456. nncheck - check for unread articles
  4457.  
  4458. From: NNCHECK
  4459. Subject: SYNOPSIS
  4460.  
  4461. nncheck [ -Q -r -t ] [ -f format ]
  4462.  
  4463. From: NNCHECK
  4464. Subject: DESCRIPTION
  4465.  
  4466. nncheck will report if there are some articles on the system which you have
  4467. not read.
  4468.  
  4469. Without options, nncheck will simply print a message reporting the number of
  4470. unread articles with the following format:
  4471.       There are 327 unread articles in 25 groups
  4472. and when there are no unread articles, the following message will be printed:
  4473.       No News (is good news)
  4474.  
  4475. nncheck will exit with a value of 0 if there are unread articles, and 99 if
  4476. there is no news (see the exception for the -r option.)
  4477.  
  4478. It is important to notice that even though unread articles have been reported
  4479. by nncheck, the actual number of unread articles may be much lower (or even
  4480. zero) when nn is invoked to read the articles. This is because the calculation
  4481. of the number of unread articles is only based on recorded article number
  4482. intervals. Invoking nn to read the articles may reveal that the articles have
  4483. previously been read in another news group, have been expired, or are killed
  4484. using the auto-kill facility.
  4485.  
  4486. The following options are used to modify the amount and format of the output
  4487. from nncheck:
  4488.  
  4489. -Q   Quiet operation. No output is produced, only the exit status indicate
  4490.      whether there is unread news.
  4491.  
  4492. -t   Print the name of each group with unread articles, and how many unread
  4493.      articles there are (not counting split digests!).
  4494.  
  4495. -r   Output a single integer value specifying the number of unread articles,
  4496.      and exit with a 0 status (somebody told me this would be useful).
  4497.  
  4498. -f format
  4499.      Output the number of unread articles using the specified format. The
  4500.      format is a text that may contain the following %-escapes:
  4501.           %-code    resulting output
  4502.           %u        "uuu unread articles"
  4503.           %g        "ggg groups"
  4504.           %i        "is" if 1 unread article, else "are"
  4505.           %U        "uuu"
  4506.           %G        "ggg"
  4507.      where uuu is the number of unread articles, and ggg is the number of
  4508.      groups with unread articles.
  4509.      For example, the default output format is
  4510.           "There %i %u in %g"
  4511.      which I prefer to the following less perfect format:
  4512.           "There are %U unread article(s) in %G group(s)"
  4513.  
  4514.  
  4515.  
  4516. From: NNCHECK
  4517. Subject: FILES
  4518.  
  4519. ~/.newsrc   The record of read articles
  4520. $db/MASTER  The database master index
  4521.  
  4522.  
  4523. From: NNCHECK
  4524. Subject: SEE ALSO
  4525.  
  4526. nn(1), nngoback(1), nngrab(1), nngrep(1), nnpost(1), nntidy(1)
  4527. nnadmin(1M), nnusage(1M), nnmaster(1M)
  4528.  
  4529. From: NNCHECK
  4530. Subject: AUTHOR
  4531.  
  4532. Kim F. Storm, Texas Instruments A/S, Denmark
  4533. E-mail: storm@texas.dk
  4534.  
  4535. From: NNGOBACK
  4536. Subject: NAME
  4537.  
  4538. nngoback - make news articles unread on a day-by-day basis (nn)
  4539.  
  4540. From: NNGOBACK
  4541. Subject: SYNOPSIS
  4542.  
  4543. nngoback [ -NQvi ] [-d] days [ group ]...
  4544.  
  4545. From: NNGOBACK
  4546. Subject: DESCRIPTION
  4547.  
  4548. nngoback will rewind the .newsrc record file of nn(1) one or more days. It can
  4549. be used to rewind all groups, or only a specified set of groups. In other
  4550. words, nngoback can mark news articles which have arrived on the system during
  4551. the last days days unread.
  4552.  
  4553. Only subscribed groups that occur in the current presentation sequence are
  4554. rewound. That means that if no group arguments are specified, all groups
  4555. occurring in the sequence defined in the init file will be rewound. Otherwise,
  4556. only the groups specified on the argument line will be rewound.
  4557.  
  4558. When a group is rewound, the information about selections, partially read
  4559. digests etc. are discarded. It will print notifications about this unless the
  4560. -Q (quiet) option is used.
  4561.  
  4562. If the -i (interactive) option is specified, nngoback will report for each how
  4563. many articles can be marked unread, and ask for confirmation before going back
  4564. in that group.
  4565.  
  4566. If the -v (verbose) option is specified, nngoback will report how many
  4567. articles are marked unread.
  4568.  
  4569. If the -N (no-update) option is specified, nngoback will perform the entire
  4570. goback operation, but not update the .newsrc file.
  4571.  
  4572. If you are not up-to-date with your news reading, you can also use nngoback to
  4573. catch up to only have the last few days of news waiting to be read in the
  4574. following way:
  4575.       nn -a0
  4576.       nngoback 3
  4577. The nn command will mark all articles in all groups as read (answer all to the
  4578. catch-up question.) The following nngoback will then make the last three days
  4579. of news unread again.
  4580.  
  4581. Examples:
  4582.  
  4583. nngoback 0
  4584.      Mark the articles which have arrived today as unread.
  4585.  
  4586. nngoback 1
  4587.      Mark the articles which have arrived yesterday and today as unread.
  4588.  
  4589. nngoback 6
  4590.      Mark the articles which have arrived during the last week as unread.
  4591.  
  4592. You cannot go more than 14 days back with nngoback. (You can change this limit
  4593. as described below.)
  4594.  
  4595. From: NNGOBACK
  4596. Subject: THE BACK_ACT DAEMON
  4597.  
  4598. It is a prerequisite for the use of nngoback that the script back_act is
  4599. executed at an appropriate time once (and only once) every day. Preferably
  4600. this is done by cron right before the bacth of news for `today' is received.
  4601. back_act will maintain copies of the active file for the last 14 days.
  4602.  
  4603. Optionally, the back_act program accepts a single numerical argument
  4604. specifying how many copies of the active file it should maintain. This is
  4605. useful if news is expired after 7 days, in which case keeping more than 7 days
  4606. of active file copies is wasteful.
  4607.  
  4608. From: NNGOBACK
  4609. Subject: FILES
  4610.  
  4611. ~/.newsrc            The record of read articles.
  4612. ~/.newsrc.goback     The original rc file before goback.
  4613. $db/active.N         The N days `old' active file.
  4614. $master/back_act     Script run by cron to maintain old active files.
  4615.  
  4616.  
  4617. From: NNGOBACK
  4618. Subject: SEE ALSO
  4619.  
  4620. nn(1), nncheck(1), nngrab(1), nngrep(1), nnpost(1), nntidy(1)
  4621. nnadmin(1M), nnusage(1M), nnmaster(8)
  4622.  
  4623. From: NNGOBACK
  4624. Subject: NOTES
  4625.  
  4626. nngoback does not check the age of the `old' active files; it will blindly
  4627. believe that active.0 was created today, and that active.7 is really seven
  4628. days old! Therefore, the back_act script should be run once and only once
  4629. every day for nngoback to work properly.
  4630.  
  4631. The days are counted relative to the time the active files were copied.
  4632.  
  4633. From: NNGOBACK
  4634. Subject: AUTHOR
  4635.  
  4636. Kim F. Storm, Texas Instruments A/S, Denmark
  4637. E-mail: storm@texas.dk
  4638.  
  4639. From: NNGRAB
  4640. Subject: NAME
  4641.  
  4642. nngrab - news retrieval by keyword (nn)
  4643.  
  4644. From: NNGRAB
  4645. Subject: SYNOPSIS
  4646.  
  4647. nngrab [ -c ] keyword
  4648.  
  4649. From: NNGRAB
  4650. Subject: DESCRIPTION
  4651.  
  4652. nngrab invokes nn on all USENET articles whose subject (or keyword) field(s)
  4653. contain an instance of keyword. nngrab is a fast equivalent for:
  4654.       nn -mxX -s/keyword all
  4655.  
  4656. For example,
  4657.       nngrab tesla
  4658. will retrieve items concerning Nikola Tesla.
  4659.  
  4660. Keyword case is ignored unless -c is specified, and the keyword can be a
  4661. regular expressions (escaped to avoid conflicts with the shell). For example,
  4662.       nngrab "n.*tesla"
  4663.  
  4664. The range of search includes all newsgroups on the system, including ones
  4665. which are unsubscribed.
  4666.  
  4667. From: NNGRAB
  4668. Subject: FILES
  4669.  
  4670. $db/subjects    subject database
  4671.  
  4672.  
  4673. From: NNGRAB
  4674. Subject: SEE ALSO
  4675.  
  4676. nn(1), nnspew(8), egrep(1)
  4677.  
  4678. From: NNGRAB
  4679. Subject: NOTES
  4680.  
  4681. nngrab can be much faster than the equivalent command shown above, if the
  4682. tertiary news subject database generated by the nnspew(8) daemon exists. To
  4683. enable the faster operation, nnspew must be executed regularly by cron.
  4684.  
  4685. nngrab uses egrep(1) to scan the subject database, so if you are not running
  4686. fast egrep (GNU-style) this is all for naught.
  4687.  
  4688. nngrab will use a subject database generated by nnspew independent of its age.
  4689. Thus, if you stop running nnspew, remember to remove the subjects file as
  4690. well.
  4691.  
  4692. From: NNGRAB
  4693. Subject: BUGS
  4694.  
  4695. Under version 6.4, search of the "Keywords:" field is not supported.
  4696. Search on name is not possible either.
  4697.  
  4698. From: NNGRAB
  4699. Subject: AUTHOR
  4700.  
  4701. James A. Woods, NASA Ames Research Center
  4702. E-mail: jaw@ames.arc.nasa.gov
  4703.  
  4704. From: NNGREP
  4705. Subject: NAME
  4706.  
  4707. nngrep - grep for news group names (nn)
  4708.  
  4709. From: NNGREP
  4710. Subject: SYNOPSIS
  4711.  
  4712. nngrep [ -ainprsu ] [ -l ] [ pattern ]
  4713.  
  4714. From: NNGREP
  4715. Subject: DESCRIPTION
  4716.  
  4717. nngrep can print various selections of the available news groups.
  4718.  
  4719. Without options, nngrep will list all currently subscribed newsgroups whose
  4720. name matches any of the specified patterns. If no pattern is specified, all
  4721. subscribed groups will be listed.
  4722.  
  4723. The selection of news groups against which the patterns are matches, and
  4724. subsequently printed by nngrep can be limited or expanded using the following
  4725. command line options and arguments:
  4726.  
  4727. -a   Use both subscribed and unsubscribed groups. Overrides the -u option.
  4728.  
  4729. -i   Use only ignored groups, i.e. which are not in the presentation sequence.
  4730.  
  4731. -n   Use only new groups. Notice that nn considers a group to be new until you
  4732.      have read at least one article in the group, or you have unsubscribed to
  4733.      the group. This means that even reasonable active news groups may remain
  4734.      "new" for quite some time if it only contains articles which are
  4735.      cross-posted to other groups which occur earlier in your presentation
  4736.      sequence.
  4737.  
  4738. -p   Use only groups with unread (pending) articles.
  4739.  
  4740. -r   Use only read groups, i.e. without unread articles.
  4741.  
  4742. -s   Use only groups which are in the presentation sequence.
  4743.  
  4744. -u   Use only unsubscribed groups.
  4745.  
  4746. These options can be combined if they don't logically exclude each other.
  4747.  
  4748. For example, to get the names of all "source" groups, you can use the command
  4749.       nngrep source
  4750.  
  4751. You can use this to read a specific subset of news groups with nn; for example
  4752.       nn `nngrep -sp source`
  4753.  
  4754. From: NNGREP
  4755. Subject: LONG LISTING
  4756.  
  4757. A long listing of the matched groups can be requested with the -l option. It
  4758. will include the following information:
  4759.  
  4760. SUBSCR      Specifies whether the group is subscribed or not (yes/no).
  4761. NEW         Specifies whether the group is new or not (yes/no).
  4762. UNREAD      Shows the number of unread articles in the group (if any).
  4763. SEQUENCE    Shows the group's index in the presentation sequence.
  4764. GROUP       The name of the group.
  4765.  
  4766.  
  4767. From: NNGREP
  4768. Subject: FILES
  4769.  
  4770. ~/.newsrc   The record of read articles
  4771. ~/.nn/init  The presentation sequence
  4772.  
  4773.  
  4774. From: NNGREP
  4775. Subject: SEE ALSO
  4776.  
  4777. nn(1), nncheck(1), nngoback(1), nngrab(1), nnpost(1), nntidy(1)
  4778. nnadmin(1M), nnusage(1M), nnmaster(8)
  4779.  
  4780. From: NNGREP
  4781. Subject: AUTHOR
  4782.  
  4783. Kim F. Storm, Texas Instruments A/S, Denmark
  4784. E-mail: storm@texas.dk
  4785.  
  4786. From: NNMASTER
  4787. Subject: NAME
  4788.  
  4789. nnmaster - nn database manager
  4790.  
  4791. From: NNMASTER
  4792. Subject: SYNOPSIS
  4793.  
  4794. nnmaster -I [lmit]
  4795. nnmaster -w
  4796. nnmaster -v
  4797. nnmaster -l [ "lock message" ]
  4798. nnmaster [ options ] [ groups ]
  4799. nnmaster -F [ options ] [ groups ]
  4800.  
  4801. From: NNMASTER
  4802. Subject: DESCRIPTION
  4803.  
  4804. nnmaster is the daemon which is responsible for building and maintaining the
  4805. database used by the nn(1) news reader.
  4806.  
  4807. Normally, nnmaster is started when the system enters multi-user mode, and runs
  4808. until system shutdown. To facilitate this, you should place the following call
  4809. in /etc/rc (or similar) to invoke the nnmaster daemon:
  4810.       $master/nnmaster -l -r -C
  4811. where $master is the MASTER_DIRECTORY defined during configuration of nn.
  4812.  
  4813. When nnmaster is started as specified above, it will first unlock the database
  4814. in case it was locked (-l), perform a thorough consistency check on the
  4815. database (-C).
  4816.  
  4817. Then, every 10 minutes (-r), it will look at the time-stamp of the news active
  4818. file to see whether new articles have arrived on the system (or whether
  4819. articles have been expired).
  4820.  
  4821. If the active file has been modified, nnmaster will collect the header
  4822. information from the new articles and enter them into the database (or remove
  4823. the headers of the expired articles from the database).
  4824.  
  4825. If it detects that some articles have been expired, it will automatically
  4826. remove the header information of the expired articles from the database.
  4827.  
  4828. From: NNMASTER
  4829. Subject: ARTICLE COLLECTION OPTIONS
  4830.  
  4831. Normally, nnmaster will collect all available news groups defined in the news
  4832. active file. The set of collected groups can be controlled via the argument
  4833. line. Groups can be either included or excluded:
  4834. A group name, e.g. comp, will cause the group and all its subgroups to be
  4835. collected. Individual groups, e.g. news.software.nn, can also be specified
  4836. A group name preceded by an exclamation mark, e.g. !talk.politics, will cause
  4837. the group and all its subgroups to be ignored.
  4838. An empty argument, i.e. "", will cause all groups that are not ignored to be
  4839. collected. For example, to collect everything but rec and misc, use the
  4840. following command:
  4841.       nnmaster -r !rec !misc ""
  4842. If the empty argument had been omitted, nothing would be collected, since the
  4843. presence of any groups arguments causes nnmaster to ignore all groups which
  4844. are not explicitly mentioned.
  4845. Example 1: The following commands can be executed by cron to collect different
  4846. sets of groups at different intervals or under different conditions:
  4847.       nnmaster -B -O14 rec misc sci -LBO -u
  4848.       nnmaster !rec !misc !sci "" -u
  4849. Example 2: The group arguments are used in the given sequence, e.g. to leave
  4850. out comp.sys, but still collect comp.sys.ibm.pc, use the command:
  4851.       nnmaster -r comp.sys.ibm.pc !comp.sys ""
  4852. The use of the -u option in the first example is essential, since each of the
  4853. commands will update the active file time stamp which will prevent the other
  4854. command from detecting new articles that have arrived.
  4855. Using this method to keep specific groups out of the database must be used
  4856. with great caution; just a single invocation of nnmaster without any arguments
  4857. will collect all the otherwise ignored groups!
  4858.  
  4859. From: NNMASTER
  4860. Subject: COLLECTION OF ARTICLES
  4861.  
  4862. The following options control how nnmaster performs the collection of new
  4863. articles.
  4864.  
  4865. -r [ min ]
  4866.      Daemon mode. The nnmaster will put itself in the background (unless -f is
  4867.      also specified), and will checks for arrival of new articles and expired
  4868.      articles every min minutes (and update the database accordingly). If min
  4869.      is omitted, the default is to check every 10 minutes.
  4870.      Without the -r option, the nnmaster will just perform a single collection
  4871.      of new articles (if any) and then exit. This can be used to have the
  4872.      nnmaster started by cron(8) at regular intervals instead of having it as a
  4873.      daemon which sleeps between checking for new articles. Since the nnmaster
  4874.      is a bit expensive to start up (it has to read a few files), it is up to
  4875.      you to decide which mode is best on your system. (I have also heard that
  4876.      it works to call nnmaster without -r from inews(1). I cannot recommend
  4877.      this unless you receive batched news; invoking nnmaster for every
  4878.      received article sounds too expensive to me.)
  4879.  
  4880. -h [ sec ]
  4881.      Hold collection of new articles until next scan if new articles have
  4882.      arrived withing the last sec [60] seconds. This is useful to prevent
  4883.      nnmaster from competing for disk i/o with an rnews process which is
  4884.      unbatching incoming news, or a running expire process. It will have the
  4885.      side effect of limiting the number of C: entries in the log, since
  4886.      collection of incoming batches will typically be done in larger thunks.
  4887.  
  4888. -f   Run nnmaster in foreground in daemon mode (see -r). Useful if nnmaster is
  4889.      invoked from inittab. (Notice that if you use a respawn entry in inittab,
  4890.      you will not be able to stop nnmaster using the -k option, since init
  4891.      will immediately start another master.)
  4892.  
  4893. -C   Perform a consistency check on the database on start-up, and rebuild
  4894.      corrupted database files. This operation can be quite time-consuming
  4895.      since it reads through all the database files.
  4896.  
  4897. -b   Normally, articles without a proper news header (no Newsgroups: line) are
  4898.      ignored. Specifying the -b option causes these `bad' articles to be
  4899.      included in the database (normally with no sender or subject).
  4900.  
  4901. -B   Remove `bad' articles. Sometimes, articles without a header ends up in
  4902.      the news spool directory. These articles have no article id, and
  4903.      therefore, they will never be expired by expire(8). This option will
  4904.      allow the nnmaster to silently remove these articles (a `B' entry will
  4905.      occur in the log file).
  4906.  
  4907. -O days
  4908.      Ignore articles which are older than the given number of days. This may
  4909.      help keep old 'stray' articles out of the database. If the -B options is
  4910.      also specified, the old articles will be removed from the news spool
  4911.      directories. Old ignored or removed articles will be reported with an `O'
  4912.      entry in the log file. This option can be disable for individual groups
  4913.      by the O flag in the GROUPS file (see below).
  4914.  
  4915. -R N Specifies how the auto-recollect operation is performed on the groups
  4916.      having this option set in the GROUPS file (see below). Four methods are
  4917.      available (default is method 1):
  4918.      1: Run expire on the group when new articles arrive.
  4919.      2: Run expire on the group on every scan.
  4920.      3: Recollect all articles when new articles arrive.
  4921.      4: Recollect all articles on every scan.
  4922.  
  4923. -Q   Normally, nnmaster will print a message on the system console or in the
  4924.      syslog if a fatal error happens. This option will prevent this, so only a
  4925.      type 'E' entry is written to the Log file.
  4926.  
  4927. From: NNMASTER
  4928. Subject: DATABASE EXPIRATION
  4929.  
  4930. Since articles does not stay forever in the news system, the database must be
  4931. cleaned up regularly to remove the information stored for expired articles.
  4932. Expiration of the database is normally scheduled using the nnadmin(1M) command
  4933. executed by cron at a suitable time when expire on the news articles has
  4934. completed. The following command will send a message to the nnmaster and cause
  4935. it to initiate expire on all news groups:
  4936.       nnadmin =EYW
  4937.  
  4938. Selective expiration of individual groups can be done from nnadmin
  4939. (interactive mode). It can also be done by invoking nnmaster with the -F
  4940. option. For example, the following command will run expire on all groups
  4941. except the `rec' groups:
  4942.       nnmaster -F -k !rec ""
  4943. The -k option is required to terminate the currently running master since two
  4944. daemons cannot be running at the same time. Thus to run expire (on all groups)
  4945. in this way from cron, the following commands must be used:
  4946.       nnmaster -Fk "" ; nnmaster -r ...
  4947.  
  4948. It is also possible to have nnmaster detect expiration automatically (see -e).
  4949. This requires that the min field in the active file is updated by the news
  4950. expire (this is not the default case when Cnews is used). However, this is not
  4951. always a safe indication since the first article may not have been expired,
  4952. while a lot of other articles have been deleted.
  4953.  
  4954. There are several strategies available in the nnmaster to do this clean-up,
  4955. each having their strengths and weaknesses.
  4956.  
  4957. Method 1 (default): Rebuilds the database from the existing database
  4958. information by comparing the current database contents with the contents of
  4959. the news group directories, eliminating entries whose file no longer exists.
  4960. This method is guaranteed to eliminate all expired articles from the database,
  4961. and it is reasonably fast because it only has to read the directories, not
  4962. each article file.
  4963.       If news is accessed remotely via nntp, the list of existing articles
  4964. cannot efficiently be fetched by reading a local directory. Instead an XHDR
  4965. request is sent to the nntp server to get a list of articles.
  4966.  
  4967. Method 2: Eliminates only the expired articles before the first article in the
  4968. group. This is very fast since only the active file and the database itself is
  4969. accessed, but it will obviously leave some expired articles in the database.
  4970. This method requires that the min field in the active file is updated by
  4971. expire.
  4972.  
  4973. Method 3: Discard the current database information and recollects all
  4974. articles. This is obviously very time consuming, and it is therefore not
  4975. recommended, especially not with nntp.
  4976.  
  4977. The options related to database expiration are:
  4978.  
  4979. -E N Select expire method N. (If N is omitted, the default method is used).
  4980.  
  4981. -e [N]
  4982.      Automatically run expire in the database on groups where the min number
  4983.      in the active file has increased by N (1 if omitted) articles. This is
  4984.      disabled by default (since the min field is often unreliable).
  4985.  
  4986. -F   Run expire once and exit. If a list of groups is specified on the command
  4987.      line, the matched groups (see the rules above) will be marked for
  4988.      expiration. If no groups are specified, only the groups already scheduled
  4989.      for expire will be expired. Consequently, to expire all groups, a blank
  4990.      argument "" (matching all groups) must be specified.
  4991.  
  4992. From: NNMASTER
  4993. Subject: DATABASE LOCKING
  4994.  
  4995. The database can be locked centrally, which will normally disallow all access
  4996. to the database, and even block nnmaster from being (accidentally) started.
  4997. When a lock is set on the database, all currently running clients will
  4998. terminate the next time they try to access the database. Setting a lock on the
  4999. database can thus also be used to force running clients to terminate.
  5000.  
  5001. The following options set and clear locks on the database:
  5002.  
  5003. -l message
  5004.      Locks the database with the given message. The message will be displayed
  5005.      every time a program tries to access the database.
  5006.  
  5007. -l   Unlock the database if it was locked.
  5008.  
  5009. -i   Ignore a possible lock and continue. This can be used to have nnmaster
  5010.      operate on a database which is blocked from normal user access.
  5011.  
  5012. Since only one nnmaster can operate on the database at any one time, a running
  5013. nnmaster daemon must be stopped before a lock can be set on the database. If
  5014. neither -f nor -r is specified with the -l option (in both forms), nnmaster
  5015. will terminate after setting or clearing the lock.
  5016.  
  5017. From: NNMASTER
  5018. Subject: DATABASE INITIALIZATION
  5019.  
  5020. The following options are used to initialize and update the central database
  5021. files:
  5022.  
  5023. -I [limit]
  5024.      Initialize database. This option will erase an existing database, and
  5025.      create an empty database containing entries for the currently known
  5026.      groups. nnmaster will offer you to use an existing GROUPS file when
  5027.      initializing the database.
  5028.      The optional limit can be used to put a limit on the number of articles
  5029.      that will be collected in each group during the first collection of
  5030.      articles following the database initialization. This is useful on systems
  5031.      where the 'min' field in the active file is unreliable or not maintained
  5032.      (Cnews doesn't) to limit the work done to do the initial collection of
  5033.      news after the initialization of the database. If news is accessed
  5034.      remotely from an NNTP server, this is even more important! If limit is
  5035.      omitted, or is zero, nnmaster will trust the min field and collect all
  5036.      articles in the range min..last.
  5037.  
  5038. -G   Reread the GROUPS file. This option is used to instruct nnmaster to parse
  5039.      the GROUPS file after it has been edited. See the section on the GROUPS
  5040.      file below.
  5041.  
  5042. From: NNMASTER
  5043. Subject: MISCELLANEOUS OPTIONS
  5044.  
  5045. The following options controls various details of the nnmaster's behaviour:
  5046.  
  5047. -D [ N ]
  5048.      Run nnmaster in "debug mode". If N is omitted, or equals 1 or 3, this
  5049.      will produce a compact but still very informative trace of the collection
  5050.      or expire process directly on the terminal. This is most useful when
  5051.      doing the first collection of articles after initializing the database
  5052.      with -I. If N is 2 or 3, a trace of the NNTP traffic is written to a file
  5053.      nnmaster.log in the TMP directory. This option disables -r.
  5054.  
  5055. -H   Identifies the host which nnmaster is running on as the nntp-server for
  5056.      its clients, i.e. that it can access the news spool directory locally
  5057.      without using NNTP. Normally, nnmaster will detect this by itself by
  5058.      comparing the host name to the contents of the nntp_server file, so this
  5059.      option should really be superfluous.
  5060.  
  5061. -y retries
  5062.      In some networked environment, opening an article (shared from another
  5063.      machine via NFS) may fail for no obvious reason. Using this option, it is
  5064.      possible to cause nnmaster to perform retries attempts to open an article
  5065.      before marking the article as non-existing in the database.
  5066.  
  5067. -L types
  5068.      Exclude the specified entry types from the log file. This is normally
  5069.      used to exclude the 'C'ollecting and e'X'pire entries (-LCXO).
  5070.  
  5071. -t   Trace the collection process. This will place a lot of information into
  5072.      the log file (T: entries).
  5073.  
  5074. -u   Normally, nnmaster will just compare the time-stamp on the active file
  5075.      with a time-stamp saved in the database to see if new articles have
  5076.      arrived. The -u option forces the nnmaster to read the active file on
  5077.      start-up to see if new articles have arrived.
  5078.  
  5079. -v   Print the release and version identification for nnmaster, and exit.
  5080.  
  5081. -w   Wakeup the real nnmaster. Send a signal to the nnmaster daemon to have it
  5082.      check for new articles immediately.
  5083.  
  5084. -k   Kill the already running nnmaster daemon before proceeding with the
  5085.      operation specified by the other options (or terminate if no other
  5086.      operation is requested).
  5087.  
  5088. From: NNMASTER
  5089. Subject: THE GROUPS FILE
  5090.  
  5091. The primary purpose of the GROUPS file is to store the names of the news
  5092. groups represented in the database. Each line in the file corresponds to an
  5093. entry in the (binary) MASTER file, and the sequence of the lines in the GROUPS
  5094. file must never be changed unless the database is reinitialized afterwards.
  5095.  
  5096. However, the contents of the lines in the GROUPS file can be edited to control
  5097. how the nnmaster should handle each individual group.
  5098.  
  5099. The format of each line is:
  5100.       news.group.name [ timestamp ] [ flags ]
  5101.  
  5102. The news group name is the name of the group, and must not be changed in any
  5103. way. If the group is no longer in the news active file, and consequently the
  5104. group does no longer exist, group name can be replaced by a `@' character
  5105. which will instruct nnmaster to ignore this entry without having to rebuild
  5106. the entire database.
  5107.  
  5108. The optional time stamp indicates when the line was added to the GROUPS file
  5109. and is used by nn to detect new groups. When the GROUPS file is built
  5110. initially from the active file, the time stamps are omitted which simply means
  5111. that they are "old".
  5112.  
  5113. One or more of the following flags can be added to the GROUPS line to control
  5114. nnmaster's handling of the group:
  5115.  
  5116. D   Causes nnmaster to treat all articles in the group as digests, even when
  5117.      they don't initially look like digests. Articles which are found not to
  5118.      be digests after all, are still not digested.
  5119.  
  5120. N    Instructs nnmaster to never digest any articles in the group.
  5121.  
  5122. O    Disables the -O option for this group, i.e. all existing articles will be
  5123.      included in the database (and they will not be removed if the -B option
  5124.      is specified). This flag should be set on groups which you never expire,
  5125.      or have a very long expire time!
  5126.  
  5127. R    Causes nnmaster to recollect all available articles in the group whenever
  5128.      a new article is received. This is said to be useful is some high-traffic
  5129.      clarinet groups with many cancelled articles.
  5130.  
  5131. >file
  5132.      Instructs nnmaster to append all new articles to the specified file. This
  5133.      makes it possible to keep specific groups out of the way of expire. The
  5134.      archive file can be access directly from the nn client using the
  5135.      goto-group command. The file name must be a full path name to a file in
  5136.      an existing, writeable directory.
  5137.  
  5138. @    Instructs nnmaster to completely ignore this group - this is equivalent
  5139.      to setting the group name to `@' as described above.
  5140.  
  5141. ! or X
  5142.      Causes nnmaster to ignore the group and not collect the group's articles
  5143.      in the database.
  5144.  
  5145. Comments (starting with `#' and continuing to the end of line) and empty lines
  5146. are allow in the GROUPS file, but it is strongly recommended to keep the
  5147. changes to the GROUPS file as small as possible, because of the implicit
  5148. correspondence with the binary MASTER file.
  5149.  
  5150. It is not recommended to edit the GROUPS file while nnmaster is running
  5151. because it may add new groups to the file. After editing the GROUPS file, the
  5152. command
  5153.       nnmaster -G
  5154. must be run before restarting the nnmaster to parse and verify the new GROUPS
  5155. file.
  5156.  
  5157. From: NNMASTER
  5158. Subject: NNTP SUPPORT
  5159.  
  5160. The nnmaster can access the news articles from a local news spool directory as
  5161. well as from an NNTP server. When compiled with NNTP enabled, nnmaster will
  5162. compare the name of the NNTP server and the name of the local host; if they
  5163. are identical, nnmaster will bypass NNTP and access the articles directly.
  5164.  
  5165. When it has to access the news articles via NNTP, it cannot time-stamp the
  5166. active file, so instead it transfers the entire active file from the NNTP
  5167. server and compares it with a local copy of the last active file fetched from
  5168. the NNTP server. This is not very expensive in terms of cpu-cycles, disk-load,
  5169. or net-bandwidth, but to stay on friendly terms with the NNTP server
  5170. administrator, you should probably not use shorter update intervals than the
  5171. standard 10 minutes.
  5172.  
  5173. Setting a much higher update interval than the standard 10 minutes is not
  5174. really recommended either, since an update normally implies fetching a burst
  5175. of news articles from the NNTP server, so setting the interval too long may
  5176. imply that the load on the NNTP server will be more un-even.
  5177.  
  5178. In expire method 1, the use of XHDR just to get a list of existing articles in
  5179. a group is definitely a waste of resources on the nntp server (but still lower
  5180. than using method 3). Before using the XHDR request, nnmaster will send a
  5181. non-standard "LISTGROUP" request; if the nntp server supports this request, it
  5182. should return an OK_HEAD status followed by an (unordered) list of article
  5183. numbers (one per line) terminated by a `.' line. The nntp servers supporting
  5184. this request will be much less loaded during expire.
  5185.  
  5186. The -O option does not work with NNTP. The -B option will only work with NNTP
  5187. if the nnmaster is running on the NNTP server.
  5188.  
  5189. From: NNMASTER
  5190. Subject: FILES
  5191.  
  5192. The $db, $master, and $news names used below are synonyms for the
  5193. DB_DIRECTORY, MASTER_DIRECTORY, and NEWS_LIB_DIRECTORY defined during
  5194. configuration.
  5195.  
  5196. $db/MASTER          Database master index
  5197. $db/GROUPS          News group names and flags in MASTER file order
  5198. $db/DATA/nnn.[dx]   Database files for group number nnn
  5199. .../.nn[dx]         Database files if located in the group directories
  5200. $master/GATE        Message channel from nnadmin to nnmaster
  5201. $master/MPID        The process id of the nnmaster daemon.
  5202. $Log                The log file (the location is configuration dependent)
  5203. $news/active        Existing articles and groups
  5204. /usr/lib/nntp_serverContains the name of the NNTP server.
  5205.  
  5206. The MASTER file contains a record for each news group, occurring in the same
  5207. sequence as the group names in the GROUPS file. The sequence also defines the
  5208. group numbers used to identify the files in the database's DATA directory.
  5209.  
  5210. The GATE file will be created by nnadmin when needed, and removed by nnmaster
  5211. when it has read it. Therefore, to send a message to the nnmaster requires
  5212. that you are allowed to write in the $master directory.
  5213.  
  5214. The contents of the Log file are described in the nnadmin manual.
  5215.  
  5216. From: NNMASTER
  5217. Subject: SEE ALSO
  5218.  
  5219. nn(1), nncheck(1), nngrep(1), nntidy(1)
  5220. nnadmin(1M), nnspew(8), nnusage(1M)
  5221.  
  5222. From: NNMASTER
  5223. Subject: AUTHOR
  5224.  
  5225. Kim F. Storm, Texas Instruments A/S, Denmark
  5226. E-mail: storm@texas.dk
  5227.  
  5228. From: NNPOST
  5229. Subject: NAME
  5230.  
  5231. nnpost - post news articles (nn)
  5232.  
  5233. From: NNPOST
  5234. Subject: SYNOPSIS
  5235.  
  5236. nnpost [ -dksy string ] [ -f file ] [ -p ] [ group... ]
  5237.  
  5238. From: NNPOST
  5239. Subject: DESCRIPTION
  5240.  
  5241. nnpost is used to post new articles using nn's normal interface, but without
  5242. entering nn in reading mode.
  5243.  
  5244. When started, it reads the init file and then directly executes nn's :post
  5245. command.
  5246.  
  5247. It will prompt for a (comma-separated) list of news groups, the article
  5248. subject, a list of keywords, a summary, and the distribution of the article.
  5249. Each of these prompts can also be supplied via command line options or
  5250. arguments as described below.
  5251.  
  5252. When prompted for the "Newsgroup:", entering a ? as the first key will cause
  5253. nnpost to list all the known news groups and their purpose (if this
  5254. information is available). You can also enter / followed by a word or regular
  5255. expression which will cause nnpost to produce a (much) shorter listing only
  5256. containing the groups whose name and/or purpose description matches the
  5257. regular expression. When paging through either list, you can enter q to quit
  5258. the listing.
  5259.  
  5260. If a source file is specified with -f it will be used as the initial article
  5261. body. If the -p option is also specified, the article is posted directly
  5262. without editing.
  5263.  
  5264. From: NNPOST
  5265. Subject: OPTIONS
  5266.  
  5267.  
  5268. -d distribution
  5269.      Use the specified distribution for the article.
  5270.  
  5271. -k "keywords"
  5272.      Associate the specified keywords with the article.
  5273.  
  5274. -s "subject"
  5275.      Use the specified subject for the new article.
  5276.  
  5277. -y "summary"
  5278.      Include the given summary in the article header.
  5279.  
  5280. -f file
  5281.      Read the article body from the specified file.
  5282.  
  5283. -p   Post the article specified with -f without editing.
  5284.  
  5285. From: NNPOST
  5286. Subject: FILES
  5287.  
  5288. ~/.nn/init  The control variables for nnpost.
  5289.  
  5290.  
  5291. From: NNPOST
  5292. Subject: SEE ALSO
  5293.  
  5294. nn(1)
  5295.  
  5296. From: NNPOST
  5297. Subject: AUTHOR
  5298.  
  5299. Kim F. Storm, Texas Instruments A/S, Denmark
  5300. E-mail: storm@texas.dk
  5301.  
  5302. From: NNSPEW
  5303. Subject: NAME
  5304.  
  5305. nnspew - subject database manager (nn)
  5306.  
  5307. From: NNSPEW
  5308. Subject: SYNOPSIS
  5309.  
  5310. nnspew
  5311.  
  5312. From: NNSPEW
  5313. Subject: DESCRIPTION
  5314.  
  5315. nnspew builds a sorted database of all available subjects in the nn article
  5316. database for fast access via the nngrab utility.
  5317.  
  5318. nnspew should be activated regularly to rebuild the subject database, e.g. by
  5319. cron. For example:
  5320.       2 6,9,12,15,18,21 * * * root /bin/nice /usr/lib/nn/nnspew
  5321.  
  5322. Cross posted articles are only represented in the database once, and identical
  5323. subjects in each group are merged into one to use a minimum of disk space.
  5324. This saves about 50% of the disk space otherwise required.
  5325.  
  5326. From: NNSPEW
  5327. Subject: FILES
  5328.  
  5329. $db/subjects    subject database
  5330.  
  5331.  
  5332. From: NNSPEW
  5333. Subject: SEE ALSO
  5334.  
  5335. nn(1), nngrab(1), egrep(1)
  5336.  
  5337. From: NNSPEW
  5338. Subject: NOTES
  5339.  
  5340. nngrap will use the subject database generated by nnspew independent of its
  5341. age. Thus, if you stop running nnspew, remember to remove the subjects file as
  5342. well.
  5343.  
  5344. From: NNSPEW
  5345. Subject: BUGS
  5346.  
  5347. nnmaster should automatically append new articles to the subject database to
  5348. keep it up-to-date, and thus require less frequent rebuilding using nnspew.
  5349.  
  5350. From: NNSPEW
  5351. Subject: AUTHOR
  5352.  
  5353. James A. Woods, NASA Ames Research Center
  5354. E-mail: jaw@ames.arc.nasa.gov
  5355.  
  5356. From: NNSTATS
  5357. Subject: NAME
  5358.  
  5359. nnstats - display nnmaster collection and expire statistics
  5360.  
  5361. From: NNSTATS
  5362. Subject: SYNOPSIS
  5363.  
  5364. nnstats [ -lt ] [ -d month day ] [ -m month ] [ logfile ]...
  5365.  
  5366. From: NNSTATS
  5367. Subject: DESCRIPTION
  5368.  
  5369. nnstats will extract the collection (C) and expiration (X) entries from the
  5370. log file and calculate total and average number of articles, groups and
  5371. elapsed time per day, per month, or for the duration of the whole log file.
  5372.  
  5373. Normally only a summary for the specified period is printed. If -l is
  5374. specified, the statistics for each day in the period is also printed, and if
  5375. -t is specified the summary is not printed.
  5376.  
  5377. Normally the statistics is collected for all days in the log files (or the
  5378. current log file if one is not specified).
  5379.  
  5380. If "-m month" is specified, the statistics for that month is calculated. The
  5381. month is specified in normal date notation, i.e. a capitalized three letter
  5382. abbreviation like Jan, Feb, ...
  5383.  
  5384. If "-d month day" is specified, the statistics for that date only is
  5385. calculated and printed.
  5386.  
  5387. From: NNSTATS
  5388. Subject: FILES
  5389.  
  5390. .../Log             The log file
  5391.  
  5392.  
  5393. From: NNSTATS
  5394. Subject: SEE ALSO
  5395.  
  5396. nn(1), nnusage(1M), nnadmin(1M), nnmaster(8)
  5397.  
  5398. From: NNSTATS
  5399. Subject: NOTES
  5400.  
  5401. If nnmaster is run with options -LCX, nnstats will not work, because the
  5402. necessary entries are not written to the log file.
  5403.  
  5404. From: NNSTATS
  5405. Subject: AUTHORS
  5406.  
  5407. Mark Moraes <moraes@csri.toronto.edu>
  5408. Kim F. Storm <storm@texas.dk>
  5409.  
  5410. From: NNTIDY
  5411. Subject: NAME
  5412.  
  5413. nntidy - tidy your personal .newsrc file
  5414.  
  5415. From: NNTIDY
  5416. Subject: SYNOPSIS
  5417.  
  5418. nntidy [ -aciNQrsuv ] [ group ]...
  5419.  
  5420. From: NNTIDY
  5421. Subject: DESCRIPTION
  5422.  
  5423. nntidy will clean out non-existing groups, adjust obviously wrong article
  5424. numbers, and remove badly formed lines from your .newsrc file.
  5425.  
  5426. It may optionally remove ignored groups, unsubscribed groups, and groups which
  5427. are not part of your presentation sequence or the groups specified on the
  5428. command line.
  5429.  
  5430. You should run nntidy if your rc file has been corrupted for some reason.
  5431.  
  5432. From: NNTIDY
  5433. Subject: OPTIONS
  5434.  
  5435.  
  5436. -a   Equivalent to -cisu.
  5437.  
  5438. -c   Remove unrecognized lines. This will also remove the `options' line used
  5439.      by some older news readers, such as readnews(1)
  5440.  
  5441. -i   Remove entries for groups which are ignored in the database, e.g. entries
  5442.      marked with `X' in the GROUPS file.
  5443.  
  5444. -r   Remove entries for unsubscribed groups.
  5445.  
  5446. -s   Remove entries which are not included in the group presentation sequence
  5447.      defined in the init file. If one or more groups are specified on the
  5448.      command line, entries not matched by these groups (and their subgroups
  5449.      etc) will be removed.
  5450.      Notice that depending on how you construct the presentation sequence,
  5451.      this may cause unsubscribed groups to be removed from .newsrc, but this
  5452.      will not normally happen.
  5453.  
  5454. -u   Truncate entries for unsubscribed groups, by removing the article numbers
  5455.      and leaving only the news group name and the `!' mark.
  5456.  
  5457. -v   Verbose operation. Reports each change made to the .newsrc file.
  5458.  
  5459. -N   No update mode. The requested operations are performed, but the result is
  5460.      not written back to disk. This can be used with the -v option to see
  5461.      whether tidying is required.
  5462.  
  5463. -Q   Quiet operation. The version information is not printed.
  5464.  
  5465. From: NNTIDY
  5466. Subject: FILES
  5467.  
  5468. ~/.newsrc           The record of read articles
  5469. ~/.newsrc.tidy      The original rc file before tidy
  5470.  
  5471.  
  5472. From: NNTIDY
  5473. Subject: SEE ALSO
  5474.  
  5475. nn(1), nncheck(1), nngoback(1), nngrab(1), nngrep(1), nnpost(1)
  5476. nnadmin(1M), nnusage(1M), nnmaster(8)
  5477.  
  5478. From: NNTIDY
  5479. Subject: AUTHOR
  5480.  
  5481. Kim F. Storm, Texas Instruments A/S, Denmark
  5482. E-mail: storm@texas.dk
  5483.  
  5484. From: NNUSAGE
  5485. Subject: NAME
  5486.  
  5487. nnusage - display nn usage statistics
  5488.  
  5489. From: NNUSAGE
  5490. Subject: SYNOPSIS
  5491.  
  5492. nnusage [ -at ]
  5493.  
  5494. From: NNUSAGE
  5495. Subject: DESCRIPTION
  5496.  
  5497. nnusage will extract the usage entries from the log file and calculate the
  5498. total usage time for the current user, or for all nn users if -a is specified.
  5499.  
  5500. When -t is used with the -a option, nnusage will list the users ordered after
  5501. the total usage time. Otherwise, the output will be sorted according to user
  5502. names.
  5503.  
  5504. Since it is possible to suspend nn, or leave the terminal while nn is active,
  5505. nn tries to be intelligent when it calculates the usage time so it will truly
  5506. report the actual time spent on news reading.
  5507.  
  5508. From: NNUSAGE
  5509. Subject: FILES
  5510.  
  5511. .../Log             The log file
  5512.  
  5513.  
  5514. From: NNUSAGE
  5515. Subject: SEE ALSO
  5516.  
  5517. nn(1), nncheck(1), nngoback(1), nngrep(1), nntidy(1)
  5518. nnacct(1m), nnadmin(1M), nnquery(1M), nnmaster(8)
  5519.  
  5520. From: NNUSAGE
  5521. Subject: NOTES
  5522.  
  5523. If nn is compiled with ACCOUNTING turned on, then calls to nnusage are
  5524. converted into equivalent calls to nnacct.
  5525.  
  5526. The nn package must have been compiled with the STATISTICS option turned on to
  5527. produce the usage entries in the log file.
  5528.  
  5529. Only nn sessions longer than 5 minutes are registered in the log file.
  5530.  
  5531. From: NNUSAGE
  5532. Subject: AUTHOR
  5533.  
  5534. Kim F. Storm, Texas Instruments A/S, Denmark
  5535. E-mail: storm@texas.dk
  5536.  
  5537.